Gavin Lewis
Mar 24, 2021

Hi Sidhdharth, thanks for responding!

To answer your question on the Lambda functions, it can be approached in a couple of different ways - 4 separate functions like I have in the example, or a single function with 4 different websockets handlers and then switch between the routes in code (you can see the request context in the event).

For HTTP and WebSockets APIs on a single API Gateway - the different types of APIs can't operate on a single API Gateway, you'll one for your standard HTTP requests and another for your WebSockets connections. To keep this looking neat and predictable, I'd recommend using a custom domain in front of the two API Gateways and assign names like api.domain.com and websockets.api.domain.com.

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

Gavin Lewis
Gavin Lewis

Written by Gavin Lewis

Passionate about building and delivering solutions in the Cloud! Principal Cloud Architect @ Rapid Circle. Views are my own.

Responses (1)

Write a response