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

Exploration: Replacing Custom GraphQL Implementation with Apollo Server Plugins #1489

Open
javiertoledo opened this issue Oct 31, 2023 · 0 comments
Labels
dependencies Pull requests that update a dependency file difficulty: high feature-request New feature or request maintainance package:core Affects the core package provider:multicloud Affects multiple cloud providers refactor Refactor or rearchitecture size: XL A task that due to its size could be considered a project itself. spike

Comments

@javiertoledo
Copy link
Member

In the earlier stages of the Booster Framework, we implemented a custom GraphQL protocol leveraging the graphql-ws sub-protocol implemented by the subscriptions-transport-ws library, due to the unavailability of websocket support in AWS Lambda and Azure Functions at that time. However, the landscape has evolved, and the subscriptions-transport-ws library is now deprecated. In its place, the graphql-ws library, which implements the subprotocol graphql-transport-ws, is recommended.

Presently, the Apollo Server library provides plugins that facilitate websocket implementations in AWS Lambda, Azure Functions, and also offers express middleware for local server setup. This opens up the opportunity to replace our custom implementation with a more standardized, well-supported solution, subsequently reducing the amount of code we need to maintain and ensuring better protocol support.

Links to Apollo Server Libraries required for all our target providers:

We should explore the feasibility and potential benefits of adopting these Apollo Server plugins to replace our current GraphQL implementation. This exploration should evaluate the ease of integration, protocol support, and the reduction in maintenance overhead.

@javiertoledo javiertoledo added feature-request New feature or request size: XL A task that due to its size could be considered a project itself. dependencies Pull requests that update a dependency file spike package:core Affects the core package refactor Refactor or rearchitecture provider:multicloud Affects multiple cloud providers difficulty: high maintainance labels Oct 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file difficulty: high feature-request New feature or request maintainance package:core Affects the core package provider:multicloud Affects multiple cloud providers refactor Refactor or rearchitecture size: XL A task that due to its size could be considered a project itself. spike
Projects
Status: No status
Development

No branches or pull requests

1 participant