You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Why don't you use separate binaries - one for serverless (apex) and second for serverfull (http)? More code in handler = larger binary = more money spent on uploading artifact = (in many cases) worse performance = more money spent on Lambda runtime (yeah, I know free tier). I highly advocate for separating logic, especially in Lambda handlers.
Using
sam local start-api
is great butI'd like to have a toggle to fall back to
net/http
only:Everywhere AWS specific functionality is used above condition must also be checked.
Does this approach make sense or is there a better way?
The text was updated successfully, but these errors were encountered: