This repository was archived by the owner on Jan 7, 2026. It is now read-only.
add my blog#20
Open
duchh-manabie wants to merge 1 commit into
Open
Conversation
ghost
reviewed
Aug 24, 2022
| slug = "removing-dependency-between-microservices" | ||
| +++ | ||
|
|
||
| ***In this blog post, I will show for you guys solution to solve the problem we have met when deploying in microservices*** |
|
|
||
| #### Problem | ||
|
|
||
| A little bit information about our system: |
| **Nats-jetstream**: We are using it for our message broker system. We also have a blog about | ||
| [it](https://blog.manabie.io/2022/03/set-up-nats-multi-tenant-in-golang/). | ||
|
|
||
| Currently, our system is in process migrate from monolithic to microservice. We deploy our all services by one helm chart, their |
| Currently, our system is in process migrate from monolithic to microservice. We deploy our all services by one helm chart, their | ||
| deploy process are parallel. In order to start a service, it requires some logics like: `connect DB success, connect Nats success, | ||
| register logic, upsert streams of nats-jetstream, create subscriber of nats-jetstream,...` if one of these things fail then the deploy | ||
| process fail too. So what is `upsert streams of nats-jetstream, create subscriber of nats-jetstream` means :thinking:? |
| register logic, upsert streams of nats-jetstream, create subscriber of nats-jetstream,...` if one of these things fail then the deploy | ||
| process fail too. So what is `upsert streams of nats-jetstream, create subscriber of nats-jetstream` means :thinking:? | ||
|
|
||
| 1. **Upsert streams of nats-jetstream**: We write a library to check the `stream` by golang code. Is it exist? -> create a new one. |
| process fail too. So what is `upsert streams of nats-jetstream, create subscriber of nats-jetstream` means :thinking:? | ||
|
|
||
| 1. **Upsert streams of nats-jetstream**: We write a library to check the `stream` by golang code. Is it exist? -> create a new one. | ||
| Is it have any update? -> update it. Is it need to delete? -> delete it. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.