O'Reilly logo

Mastering Akka by Christian Baxter

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Troubleshooting and best practices for Akka HTTP

When using Akka HTTP, there are a few best practices and a troubleshooting tip that I'd like to share with you. With the information in this section, you will be better equipped to employ Akka HTTP within your codebase.

Trouble with the tilde

Back in Chapter 7, REST Easy with Akka HTTP, when discussing the high-level Inbound HTTP API, we talked about composing routes together with the tile operator (~). At the end of the section titled Composing directives together, I gave a tip about forgetting to include the ~ and the effect it can have. Here, I'll provide a more concrete example of this problem and the symptom you will see when you encounter it. Consider the following set of routes that you set ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required