Questions tagged [microservices]

An architectural approach to developing a single application as a suite of small individually deployable services.

The microservice architectural style is an approach to developing a single application as a suite of small services, each running in its own process and communicating with lightweight mechanisms, often an HTTP resource API. These services are built around business capabilities and independently deployable by fully automated deployment machinery. There is a bare mininum of centralized management of these services, which may be written in different programming languages and use different data storage technologies.

Microservices Definition by Lewis/Fowler

Properties:

  • The services are easy to replace.
  • Services are organized around capabilities, e.g. user interface front-end, recommendation, logistics, billing, etc.
  • Services can be implemented using different programming languages, databases, hardware and software environment, depending on what fits best.
  • Architectures are symmetrical rather than hierarchical (producer/consumer).

Philosophy:

  • The services are small - fine-grained to perform a single function.
  • The organization culture should embrace automation of deployment and
    testing. This eases the burden on management and operations.
  • The culture and design principles should embrace failure and faults, similar to anti-fragile systems.
  • The services are elastic, resilient, composable, minimal, and complete.

Books:

Besides there are thousands of books that speak about microservices focused on some language like Python or Java or some platforms like Azure or AWS easily to find.

Articles

The following is an great article series from the NGINX Blog.

Sites

9062 questions
3
votes
1 answer

How to architecture Microservice & OpenID connect?

We have three microservices: microA, microB & microC. microA & microB are powering product 1. microA & microC are powering product 2. Obviously, we would need a security layer, in our case implementing an "OpenID Connect" provider fits well with…
ludofleury
  • 321
  • 3
  • 12
3
votes
2 answers

AWS ECS: How do I get around "too many containers" with my microservice architecture API?

I'm working on an API with microservice architecture. I deploy to ECS via Elastic Beanstalk. Each microservice is a long-running task (which, on ECS equates to a single container). I just passed up 10 tasks, and I can no longer deploy. ERROR:…
3
votes
1 answer

Docker, independent multiple rails instances

I an trying to create a development environment with multiple microservices running like in a production environment. I would like to run with Docker two rails applications that makes calls between them. I know that I can use links, but with this I…
Fran Martinez
  • 2,994
  • 2
  • 26
  • 38
3
votes
1 answer

Docker, connection refused for every other running services

My local installation of docker cannot access to other ports. This is my docker-compose.yml file: db: image: library/mysql:5.6 environment: MYSQL_ALLOW_EMPTY_PASSWORD: "yes" expose: - "3306" ports: - "3306:3306" mailcatcher: …
Fran Martinez
  • 2,994
  • 2
  • 26
  • 38
3
votes
0 answers

Service registry and external services

With my custom applications I can use service registry and ribbon to automatically get fail-over built in my RestTemplate. I would like to have the same with external services, let's say elastic-search nodes. I would like to have a RestTemplate that…
piotrek
  • 13,982
  • 13
  • 79
  • 165
3
votes
1 answer

how to organize outgoing api request urls in rails

I have an application in rails that make request to other microservices using httparty. Other microservices are also written in Rails. Right now, i hard coded all the api urls used in httparty, what will be a more elegant way to organize them?
sean an
  • 127
  • 1
  • 2
  • 12
3
votes
1 answer

How to initialize a postgres database tables in microservice architecture with node running in docker

What is the best practice for initializing a node microservice's tables in a postgres database ? Should it be on service start ? I'm thinking of copying all the .sql files to the container (during docker build) + install psql into that container,…
georgehdd
  • 433
  • 3
  • 12
3
votes
1 answer

Docker container A dies after excuting query(insert/update) in cassandra running as another docker service B

I am new to docker,Cassandra . well I'm facing a weird issue, any help as how I could debug this issue would be great. I am using Cassandra 3.3.0, native Cassandra-driver for python- 3.3.0 Docker 1.11.1 I have two containers one is hosting…
Karn_way
  • 1,005
  • 3
  • 19
  • 42
3
votes
0 answers

Spring Cloud Turbine Amqp doesn't work

I have a problem with spring cloud: Turbine Amqp doesn't work. I exploit a local rabbit broker out of the box. one of my services: @EnableFeignClients(basePackages =…
slippery
  • 355
  • 2
  • 6
  • 13
3
votes
0 answers

HttpClient DelegatingHandlers holding state

We're building an application composed of mostly stateless microservices on Azure Service Fabric. One of the artifacts of service fabric is that the naming service returns you the endpoint for one of the instances of a service. If the client fails…
MvdD
  • 22,082
  • 8
  • 65
  • 93
3
votes
1 answer

Managing data-store concurrency as microservices scale

I am still trying to find my way around micro-services. I have a fundamental question. In an enterprise scenario, micro-services would probably have to write to a persistent data-store - be it a RDBMS or some kind of NoSQL. In most cases the …
TechiRik
  • 1,893
  • 6
  • 27
  • 37
3
votes
1 answer

Microservices per DB table?

Person NativeCountry SpokenLanguages Had a query about MIcroservice granularity. Will try to explain my query with an example. Assume I have above 3 tables in database, with Many to one relationship between Person -> NativeCountry table. One to…
3
votes
1 answer

Patterns for knowing if a pub-sub message was successful

I'm developing microservices for a project and we're experimenting with pub-sub communication using AWS SNS+SQS. We're unsure how to signal to services whether or not other services have successfully completed tasks or not. For example, if service A…
3
votes
2 answers

REST, Pagination with filters dependent on external system and sql

I have a REST web-service which is expected to expose a paginated GET call. For eg: I have a list of students( "Name" , "Age" , "Class" ) in my sql table. And I have to expose a paginated API to get all students given a class. So far so good. Just a…
k1133
  • 315
  • 3
  • 12
3
votes
2 answers

microservice messaging db-assigned identifiers

The company I work for is investigating moving from our current monolithic API to microservices. Our current API is heavily dependent on spring and we use SQL server for most persistence. Our microservice investigation is leaning toward…
gadams00
  • 771
  • 1
  • 10
  • 24
1 2 3
99
100