6 ms·
With microservice, I mean an application that speaks HTTP, accepts requests, speaks to a database, returns a response (possibly serving HTML), packaged up in a
by Animats 9y ago
With microservice, I mean an application that speaks HTTP, accepts requests, speaks to a database, returns a response (possibly serving HTML), packaged up in a Docker container and ready to be dropped somewhere in the cloud.
Huh? That's a CRUD app. A "microservice" is a service which is a component of a larger service. Usually a service run by the same organization. Many microservices don't speak HTTP; they use Google protocol buffers or something similarly efficient. Serving a Facebook page involves about a hundred microservices, and they don't talk HTTP to each other.
- meuk 9y agoThank you for the explanation, I never understood this. I wonder how many people do though (is everyone on the same page about this, usually?).
- coldtea 9y agoNo, and it's not even a very useful distinction to make. Just keep that a microservice doesn't have to speak HTTP (or be in Docker for that matter).
- steveklabnik 9y agoA microservice is about the size of a service, not about the underlying technology. This service has few endpoints, and so is a microservice. This also isn't a CRUD app, as it has no delete, for example. It only has the CR of CRUD.
- nostalgeek 9y ago> A microservice is about the size of a service Is it? Isn't it a purely organizational paradigm where each teams are responsible for a specific service and clear API boundaries are defined between teams? rather than the "size" of an application? (which is hard to quantify, if my app does AI and needs 100,000 line of code for a single endpoint, is it still micro?). That's why I believe "micro" is an unfortunate qualifier what is essentially basic SOA.
- steveklabnik 9y agoI see them as different axes. A service can be small, and it can be the only service. SOA means your larger service is comprised of smaller services, but says nothing about the size of those services. An URL shortener is a micro service without SOA. A huge web application with four services that are half a million LOC each is SOA, but not micro services. I wonder what Martin Folwer has to say...
- jbf1001 9y agoHe and James Lewis had this to say about it. https://www.thoughtworks.com/insights/blog/microservices-nutshell https://www.thoughtworks.com/insights/blog/microservices-nut... I believe James' talk at the end of the article says he wishes it was called something else because of the implication of size.
- stronglikedan 9y ago> How big is a microservice?[0] > Although “microservice” has become a popular name for this architectural style, its name does lead to an unfortunate focus on the size of service, and arguments about what constitutes “micro”. In our conversations with microservice practitioners, we see a range of sizes of services. The largest sizes reported follow Amazon's notion of the Two Pizza Team (i.e. the whole team can be fed by two pizzas), meaning no more than a dozen people. On the smaller size scale we've seen setups where a team of half-a-dozen would support half-a-dozen services. > This leads to the question of whether there are sufficiently large differences within this size range that the service-per-dozen-people and service-per-person sizes shouldn't be lumped under one microservices label. At the moment we think it's better to group them together, but it's certainly possible that we'll change our mind as we explore this style further. [0]https://martinfowler.com/articles/microservices.html https://martinfowler.com/articles/microservices.html
- steveklabnik 9y agoThanks! I was on mobile so it was a bit awkward. I'll have to revise my understanding :)
- rollulus 9y agoThey might speak HTTP/2 though; gRPC does this, and gRPC is quite popular.
- nostalgeek 9y agoIt's a web-service. "microservice" is just like "serverless", a buzzword that means everything and its contrary.