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

Hive Integration #4826

Closed
3 of 4 tasks
ardatan opened this issue Nov 18, 2022 · 1 comment
Closed
3 of 4 tasks

Hive Integration #4826

ardatan opened this issue Nov 18, 2022 · 1 comment

Comments

@ardatan
Copy link
Owner

ardatan commented Nov 18, 2022

  • Implementation of Hive plugin
  • Implementation of Hive transform to track sources
  • Implementation of Hive store
  • Documentation

Motivation

Today Mesh CLI generates artifacts for each source and saves them on the disk. This has two disadvantages;

  • Everytime source changes, Mesh needs to rebuild and deploy.
  • Hard to track breaking changes on the source level.

If Mesh uses the CDN directly instead of the disk, Mesh doesn't need to be rebuilt and deploy. A quick restart should do the trick. Also a hot reload logic can be implemented since no redeployment is needed.

In the documentation we need to cover 2 different scenarios;

First scenario: Publish on source repos then fetch on the gateway
Mesh CLI needs to be installed on the source repo then Mesh needs to be configured with the specific handler. Then mesh publish will publish the generated schema/artifacts to Hive CDN. Then on the gateway;

openapi:
  source: http://hive-cdn-url/schema
  schemaHeaders:
    TOKEN-HEADER: TOKEN-VALUE

Second scenario: Publish on the gateway
mesh publish command will generate artifacts and publish the artifacts to Hive CDN instead of saving them on the disk so deployed Mesh code won't have anything about the source schemas. So the gateway configuration will remain the same, we should only add a flag or sth else to point Mesh to the Hive CDN in order to fetch artifacts on runtime.
Hive will basically replace FsStoreStorageAdapter.

@theguild-bot theguild-bot mentioned this issue Nov 21, 2022
@gilgardosh
Copy link
Collaborator

Implementation of Hive store: added as a standalone task to roadmap

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