-
Notifications
You must be signed in to change notification settings - Fork 5
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
Send 504 response when Gambit requests timeout #849
Comments
This seems promising: https://www.npmjs.com/package/connect-timeout |
Tried out of the new TODO's to use Promises to only return a Gambit 200 back to Blink upon getting a successful Mobile Commons POST
The 29 second response time of the POST Sample Gambit POST
If we go this route, we could definitely close #762 as posting to Mobile Commons to deliver messages would be something that Gambit no longer needs to worry about.... |
Documenting that Gambit doesn't (and still won't) return a 200 based on whether we get a successful POST |
The last 2 endpoints that don't check for timeouts yet are the ones used the most infrequently:
The GET #863 checks for POST Adding the 504 checks to our 3 POST endpoints should put us in great shape for Blink to handle mData requests and forward them to Gambit though. cc @sergii-tkachenko @rapala61 |
FEATURE OVERVIEW
User Story
As a Developer -- I want to know if a request is taking longer than 30 seconds and receive a 504 back.
Active routes to check:
/chatbot
/signups
/campaigns/:id/message
/campaigns/
/campaigns/:id
Note: Not including DonorsChoose until keep is confirmed ( #857 )
Additional Information (optional)
https://devcenter.heroku.com/articles/request-timeout
Why This Matters
Blink will rely this response to retry a request if a 504 is sent back.
Current Workaround w/o Feature (if applicable)
N/A
The text was updated successfully, but these errors were encountered: