Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Websocket warmup #335

Closed
Travellerme opened this issue Jan 11, 2023 · 2 comments
Closed

Websocket warmup #335

Travellerme opened this issue Jan 11, 2023 · 2 comments

Comments

@Travellerme
Copy link

Travellerme commented Jan 11, 2023

Hello
I'm integrating websockets into our application based on the official article https://www.serverless.com/framework/docs/providers/aws/events/websocket/
And I have a question about how the warmup plugin works with WebSocket lambdas.
Unfortunately I did not find any info yet

  • Do we need to warmup websocket lambdas to speed up the first connection ?
  • If we do, then how to warmup the websocket lambda that is placed behind the auth lambda?
    Thank you
@juanjoDiaz
Copy link
Owner

Hi @Travellerme ,

Tob e honest, I've never considered websockets in the plugin.

The plugin just use the AWS SDK invoke method to invoke the lambda. So, as long as your handler handles the warmup event as described in the docs it should work just fine.

@juanjoDiaz
Copy link
Owner

Hi @Travellerme ,

Did you progress on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants