On Wed, Sep 30, 2015 at 10:01 AM, Marco Beri <marcob...@gmail.com> wrote:
> 2015-09-29 8:41 GMT+02:00 Riccardo Magliocchetti > <riccardo.magliocche...@gmail.com>: >> Il 28/09/2015 21:43, Marco Paolini ha scritto: >>> [...] >>> microservice python. Abbiamo copiato un po' da qua >>> https://www.nginx.com/blog/introduction-to-microservices/ >> link interessante grazie > > Uno dei rovesci dell'architettura a microservices che trovo davvero duro da > digerire è questo: > > "Business transactions that update multiple business entities are fairly > common. These kinds of transactions are trivial to implement in a monolithic > application because there is a single database. In a microservices-based > application, however, you need to update multiple databases owned by > different services. Using distributed transactions is usually not an option, > and not only because of the CAP theorem. They simply are not supported by > many of today’s highly scalable NoSQL databases and messaging brokers." > > La soluzione non la trovo utilizzabile in ambito, per esempio, finanziario > (ma ammetto di essere ignorante in questo approccio, per questo chiedo un > parere qui): > > "You end up having to use an eventual consistency based approach, which is > more challenging for developers." Già, è un bel casino. Dato che non sempre la consistenza eventuale è un opzione, obbliga ad utilizzare approcci tipo il [3PC][¹], con tutte le complicazioni del caso. Probabilmente è vero che l'architettura a microservizi è da adottare quando ulteriori evoluzioni o scale up di software monolitico diventano troppo complesse/costose/rischiose/wathever. ㎝ [¹]: <https://en.wikipedia.org/wiki/Three-phase_commit_protocol> PS: @MarcoP non mi hai convinto (ma probabilmente è impossibile, temo di essere assolutamente refrattario ;) che JS lato server sia una buona idea, sorry :P -- |:**THE BEER-WARE LICENSE** (*Revision 42*): | <mi...@python.it> wrote this mail. As long as you retain | this notice you can do whatever you want with this stuff. | If we meet some day, and you think this stuff is worth it, | you can buy me a beer in return. | --Carlo Miron : _______________________________________________ Python mailing list Python@lists.python.it http://lists.python.it/mailman/listinfo/python