# How to update Akka-typed IoT tutorial to use Akka-http

**URL:** <https://discuss.akka.io/t/how-to-update-akka-typed-iot-tutorial-to-use-akka-http/6892>\
**Category:** Akka HTTP\
**Created:** [July 17, 2020, 3:30am UTC](https://discuss.akka.io/t/how-to-update-akka-typed-iot-tutorial-to-use-akka-http/6892 "2020-07-17T03:30:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ak](https://avatars.discourse-cdn.com/v4/letter/a/dfb087/32.png) [@ak](https://discuss.akka.io/u/ak)\
**Post date:** [July 17, 2020, 3:30am UTC](https://discuss.akka.io/t/how-to-update-akka-typed-iot-tutorial-to-use-akka-http/6892/1 "2020-07-17T03:30:34Z")

</div>

Hello. I’ve been working through the [Akka IoT tutorial](https://doc.akka.io/docs/akka/current/typed/guide/tutorial_1.html) and tried to move on to work with the [quickstart guide for Akka http](https://developer.lightbend.com/guides/akka-http-quickstart-java/). When working with the IoT tutorial, I had been advised that if I want to send the ReadTemperature message to the Device Actor, I should do so directly rather than through its ancestor actor. However, when trying to set up a route that will read the temperature of a device with a device id, it’s hard for me to find how I’d go from a /device/temperature?id=foo endpoint straight to the device. I was wondering if there’s an example of how this can be achieved or of any reasonable architecture. Thanks.

---

<div class="post-metadata">

**Author:** ![johanandren](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.akka.io/johanandren/32/85_2.png) [@johanandren](https://discuss.akka.io/u/johanandren)\
**Post date:** [July 21, 2020, 1:01pm UTC](https://discuss.akka.io/t/how-to-update-akka-typed-iot-tutorial-to-use-akka-http/6892/2 "2020-07-21T13:01:44Z")

</div>

Hi, I think that it may be hard to get around going through the `DeviceManager`, so if there is such a recommendation in the docs it may be a leftover from porting the quickstart from the old “classic” actor APIs where you can look an actor up through its path. If you could point us to where it says this we’ll see if we can rephrase.

Such a design could end up with the `DeviceManager` and or `DeviceGroup` being a bottleneck in a high throughput scenario since all messages to devices would have to go through its mailbox. But considering that you are likely doing this to learn the basics of the Akka libraries that may not be the most important problem to solve but rather getting the puzzle pieces to fit with each other to start with.

You can always revisit that aspect later when you have learned more.
