Re:Building Microservices the Lean Way, part 2
by codewithcheese on Friday February 27, 2015 @07:03AM
(#9118395)
Hi Tom, I too have a django monolith. But, I hesitate to go down the microservices route, since I reuse alot of classes in what would become different services. Can you comment on how your class structure has changed, and how you have maximized (or not) code reuse?
[ Parent
| on HN ]
Re:Building Microservices the Lean Way, part 2
by tmwatson100 on Friday February 27, 2015 @07:18AM
(#9118427)
What sort of classes do you mean? Views? Models? Other? For us it hasn't changed much. Our apps were pretty self-contained so that splitting them into separate services isn't very arduous.
Stuff that is shared between apps is often related to 3rd party integrations, which could be moved into a separate (often asynchronous) worker/ service. In reality most of these design choices are done on a case by case basis, based on time/ cost/ maintenance.
Re:Building Microservices the Lean Way, part 2
by codewithcheese on Friday February 27, 2015 @07:29AM
(#9118461)
Yeah my main concern is for models. I can see it helps if you have distinct django apps already, in my case I have one main monolithic app. As an example I use elasticsearch, but I post process the results using models. ES is a service already do I really want to iolate some logic and build another service on top of that?
Re:Building Microservices the Lean Way, part 2
by FooBarWidget on Friday February 27, 2015 @07:48AM
(#9118534)
We extracted common code in a library, which we reuse in each microservice.