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

add my blog #20

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

duchh-manabie
Copy link
Contributor

No description provided.

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***
Copy link

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:
Copy link

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
Copy link

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:?
Copy link

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.
Copy link

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.
Copy link

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

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.

None yet

1 participant