arrow_back
Back

MongoDB replica sets: primary and secondaries

Andrew Dorokhov Andrew Dorokhov schedule 1 min read
menu_book Table of Contents

On production you never run a single database server — there are always spares.

Primary  - Secondary
        |- Secondary
        |- Secondary

There is only one primary. Writes go only to the primary; updates are replicated automatically to the secondary servers.

Write and read

  • Read — from any member of the set.
  • Write — only on the primary.
code

Need Help with Development?

Happy to help — reach out via the contacts or go straight to my Upwork profile.

work View Upwork Profile arrow_forward