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

Improve and refactor Build Flow #4283

Closed
2 tasks
Urigo opened this issue Aug 11, 2022 · 1 comment
Closed
2 tasks

Improve and refactor Build Flow #4283

Urigo opened this issue Aug 11, 2022 · 1 comment
Milestone

Comments

@Urigo
Copy link
Collaborator

Urigo commented Aug 11, 2022

Improving the process of creating artifacts and deploying them.

Today we have the option to separate the building of the handlers' artifacts and loading them to the gateway.
The artifacts that can be generated in two different formats - JSON or Code Files

So when developers use a CDN (like GraphQL Hive) to load and store these artifacts, the process is:

  1. Build artifacts
  2. Upload
  3. Use it in the configuration

With these configurations, Mesh doesn’t build artifacts again on the gateway.

All this is great but currently these types of configurations are different for each handler:

  • For GraphQL handler, they should give introspection

  • For JSON Schema/OpenAPI/RAML, you provide a bundle and it doesn’t matter which handler you use since they are all the same since bundle already has all the configuration

  • No option for gRPC

  • No option for Postgres, etc..

  • Consider a common option like artifactsPath instead of the specific options above

Also now that we have that separation, we could also:

  • Split handler implementations to reduce the runtime code into (1. Validation 2. Artifacts generation 3. Execution)
@Urigo Urigo added this to the v1 milestone Aug 11, 2022
@theguild-bot theguild-bot mentioned this issue Aug 11, 2022
@ardatan ardatan closed this as completed Mar 31, 2023
@ardatan
Copy link
Owner

ardatan commented Mar 31, 2023

Now we have guides for Hive and different SDL-based approaches in OpenAPI handler etc.

@theguild-bot theguild-bot mentioned this issue Sep 28, 2023
This was referenced Apr 30, 2024
This was referenced May 7, 2024
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

2 participants