by sgt · 10y ago · 0 comments
Initial plans for the Mozilla grant also included making DRF an official Django project, but details are sparse.
Now if you had mentioned heavy concurrency I might actually take your comment a bit more seriously. Then the answer is don't use Django or python, use golang or C/Rust.
If you have an sql based system and you aren't relying heavily on optimistic/pessimistic locking for record mutation, there is a good chance your system has all kinds of risks to lose data.
Ditching Django and using SQLAlchemy or even just the lowly dbapi directly will not alter this fact; indeed, it is something everyone who works with a database should know.
If you're having concurrency issues in your app, it isn't due to the web framework OR the database, it is due to poor application design. Period.
Vague rebuke: In my experience, Django actually does very well compared to a lot of other solutions. So there.
I particularly don't understand the "complex front-end" part. What about django's templating system hinders implementing a rich javascript based UI?
I've been quite happy using the templating system to deliver data to the front end and then using whatever js libs / frameworks I've needed to display the data to the user....
1. Data races - Use a combination of model versioning and uniqueness checks to prevent data races.
2. get_or_create/update_or_create - Duh, the atomicity is enforced by the parameters you use. Create unique indexes on the model for the things you expect to use in your parameters