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

Better DX around failing on startup #134

Open
trevor-scheer opened this issue Sep 13, 2023 · 0 comments
Open

Better DX around failing on startup #134

trevor-scheer opened this issue Sep 13, 2023 · 0 comments

Comments

@trevor-scheer
Copy link
Member

trevor-scheer commented Sep 13, 2023

Right now, serverless gateway applications are stuck with "startup but fail on every request" in the case that the gateway fails to load its schema, so the process doesn't actually die. This could be improved by installing a startupDidFail plugin by default or at least documenting it as a recommendation in the README.

Update: it's been brought to my attention that Lambda can in fact handle async initialization and that it might be able to move to a standard await apolloServer.start() mode of operation vs the less optimal startInBackgroundHandlingStartupErrorsByLoggingAndFailingAllRequests() method.

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

1 participant