Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Nature's Journey and use of Go

mash
April 05, 2023

Nature's Journey and use of Go

mash

April 05, 2023
Tweet

More Decks by mash

Other Decks in Technology

Transcript

  1. 2 Before Nature 2013.01 - IRKit - Open source Wi-Fi

    connected infrared remote controller Built by an engineer, for engineers https://getirkit.com/ https://github.com/irkit/device
  2. Beginning of Nature 2015.03.31 8:52 AM - Cold incoming email IRKitのホームページを拝見し、ご連絡させて頂きました。

    ... 簡単に言うと、電力会社がエアコンの温度を下げる代わりに消費者にリベートを払い、そのコミッションをもら うというビジネスです。 日本には、約1.4億台のエアコンが導入されており、仮にこのエアコンの温度を 2度下げれば(500Wのエアコ ンの20%削減出来る事を想定)、約 14GW(原発14基に相当)の電力需要を削減出来る事になります Simply put, it is a business in which electric utility companies pay rebates to consumers in exchange for lowering the temperature of their air conditioners and receive a commission. There are about 140 million air conditioners installed in Japan, and if the temperature of these air conditioners were lowered by 2 degrees Celsius (assuming a 20% reduction for a 500W air conditioner), it would reduce electricity demand by about 14GW (equivalent to 14 nuclear power plants). 3
  3. Beginning of Nature 2015.03.31 11:21 AM - Reply お声かけいただき、ありがとうございます。 おもしろそうですが、参加についてはお断りさせていただきます。 ...

    IRKitに関しては多くの情報をオープンソースにしていますので、 利用していただければうれしいです。 Thank you for the offer. It sounds interesting, but I will have to decline your offer. Since a lot of information about IRKit is open source, I would be happy if you could make use of it. 4
  4. 5 Nature Remo • Air conditioner • TV, Light, etc

    Nature Remo E • Smart meter (monitors electricity usage) • Solar panels • Batteries, EVs, Heat pump water heaters, etc Where we are now Providing smart home and energy management products to consumers
  5. Where we are now 2022 summer - We started Demand

    Response services 6 Utilizing our capability to control consumer electricity usage, we support utility companies to provide DR programs. • We send emails/push notifications to notify when to reduce electricity usage • We calculate baselines and report how much kWh was reduced • We control the air conditioner to automatically reduce the electricity usage
  6. How to deploy websocket servers 9 Usual web servers: •

    handle SIGTERM and graceful shutdown But … • There’s no graceful shutdown, websockets stay for 24hours~ • for each shutdown, all devices reconnect = DDOS ourselves
  7. How to deploy websocket servers 10 Solution: Slow shutdown We

    monitor AWS ECS events and when AWS is trying to kill the task, we slowly disconnect the connections one by one with varying delays
  8. We have interesting problems related to IoT • Many long

    duration connections • Rust in firmware • etc 11 Conclusion