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
Source:stackexchange.com