[Django]-Horizontally scale Django Application with single Database server

5πŸ‘

βœ…

How should the transaction management take place between these servers who don’t share any state/information between them?

That’s what your database already does for you.

Should we explicitly take a lock on the row/table etc when we want to commit a transaction?

Why? Your database already does this for you.

Just use the ordinary Django transaction features.

https://docs.djangoproject.com/en/1.3/topics/db/transactions/

A single database is already the simplest horizontally scalable solution. Nothing more to worry about.

πŸ‘€S.Lott

Leave a comment