Stav Alfi
1 min readJul 1, 2020

hi :) thanks for the great toturial!

questions:

1. if I use k8s and there are 4 replicas of the same serivce that talks to the same db, how can I make sure that while k8s changes the pods to pods with the new images, the pods with the old image won't try to access the db that has already migrated to the new version?

2. how can I test typeorm migrations? (unit tests, e2e tests) What is the prefered way to do it?

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

Responses (1)

Write a response

1. I dont'n know (sorry)
2. You must have a test database to use in your integration tests. When you run the tests, you need erase database and run the migrations again and make the integration tests using the test database.

--