-
Notifications
You must be signed in to change notification settings - Fork 14
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
add my blog #20
base: main
Are you sure you want to change the base?
add my blog #20
Conversation
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*** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
show you guys
|
||
#### Problem | ||
|
||
A little bit information about our system: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a little bit of
**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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in the process of doing sth
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:? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what does ... mean
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does it exist
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does it have, does it need
No description provided.