What EBS do you typically recommend just for routing and authenticating API calls using JWT?

Sorry if i’m not explaining that right, i’m mostly strictly a front end developer/designer but am currently making an extension. I was wondering what most of you would use as an EBS for your Twitch Extension if it’s just solely for handling and authenticating API calls using the in built helper with JWT. I heard Lambda might be good for this purpose, but am not entirely sure. Any insight you guys could provide on setting up an EBS in general would be extremely helpful, thank you!

AWS Lambda and API Gateway can be a good choice for serverless options, as you’ll only be paying for what you use rather than a server instance which could be sitting idle at times and still cost you money.

I’m actually working right now on a tutorial on how to use Lambda and API gateway as an EBS, but as that’s still a work in progress I’ll refer you to my Webhooks tutorial https://github.com/thedist/Twitch-Webhook-AWS-Tutorial which should serve as a base to work from towards what you need as it focuses a lot on API Gateway and Lambda, you can just skip the DynamoDB parts and focus on the Lambda functions (which you’ll put in your own code for verifying the JWT token and doing whatever else you need to handle) and the API Gateway part of the tutorial will show you how to setup routes to your Lambda functions.

Twitch also offer an AWS Credits program https://dev.twitch.tv/extensions/aws/ which is one of the reasons why AWS is often recommended (Amazon owns Twitch, so no surprise it’s the go to recommendation by Twitch lol) as that can potentially cover the costs during development.

There are other services out there that also are pay for only what you use, but my experience is with AWS so I’ll let others weigh in with other suggestions.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.