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

go: small refactor of http code, build pipeline #8

Merged
merged 3 commits into from
Jul 11, 2023
Merged

go: small refactor of http code, build pipeline #8

merged 3 commits into from
Jul 11, 2023

Conversation

roobre
Copy link
Member

@roobre roobre commented Jul 11, 2023

This will be the first PR in a series that aim to give the Quickpizza application two deployment modes:

  1. A single service handling all endpoints, exactly as it is now. This will be the default mode.
  2. A new mode splitting the API into several deployments, i.e. in a microservice architecture.

The goals for 2 are:

  • There will be one single build pipeline for the application, which will produce a binary/image capable of deploying in both modes.
  • Microservices-style deployment will be achieved by running different deployments of the same image, each with certain endpoints enabled/disabled in runtime.

Towards this goal, this PR adds runtime, env-var based switches to control whether certain endpoints are enabled, and tweaks the build pipeline a bit.

Subsequent PRs will further split the service and add env-var based config options so multiple services can find each other.

@roobre roobre requested a review from dgzlopes July 11, 2023 14:04
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

Successfully merging this pull request may close these issues.

2 participants