Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [microservices]

Microservices are small, independent processes that communicate with each other to form complex applications which utilize language-agnostic APIs. These services are small building blocks, highly decoupled and focused on doing a small task, facilitating a modular approach to system-building.

1
vote
1answer
590 views

Messaging between microservices on AWS

Here is the scenario: We are running a microservices style architecture on AWS using API Gateway and EC2 instances. Let’s say there are five services: Photo Service, Topics Service, User Posts ...
0
votes
2answers
475 views

Consuming external APIs within the microservice architecture

I'm writing a small microservice-based application. One of the services is assigned the task of querying an external API and processing the JSON response (filtered list of houses). Since I'm using ...
0
votes
1answer
2k views

Microservices session data when communicating internally

I'm not sure the title is correct, so please advise if you think of a better title. The scenario is: We have an API gateway that exposes REST API to our clients (web and mobile apps). We have a "...
9
votes
2answers
1k views

What is really different between SOA and Microservices

Disclaimer I hope I am not stepping on anyone's toes or offending either concepts' enthusiasts Background I have been looking for real differences between Service Oriented Architecture and ...
1
vote
0answers
262 views

In which ways, Netflix conductor is different from a BPEL engine?

Netflix conductor allows you to implement complex business and process flows using a JSON DSL. I do understand the scheduled nature of Conductor, still, in what way, it is different from having a BPEL ...
4
votes
2answers
395 views

Alternative to synchronous REST communication betweeen microservices

I know synchronous communication between services is an anti-pattern, so I'm searching for a good solution for my use-case. I have this two services: Location Service that manages users location ...
3
votes
3answers
336 views

How to avoid confusion between services as in “service layer” and services as microservices?

If I have microservice architecture and one or more microservices have layered architecture that contain service layer, how can I avoid naming confusion between microservices and structural units of ...
2
votes
1answer
359 views

Should an Identity Provider be a separate web application than a Authentication system

I'm currently writing a SAML Identity provider(Idp) to enable SSO and one of the easy ways to go about it is to use Shibboleth Identity Provider which is a ready deployable web application on it's own....
1
vote
0answers
90 views

Integration tests in different environments

Our microservices are going to be deployed on AWS, using Pipelines. A step on this pipeline will execute integration tests using a dedicated database on AWS, a MySQL instance. My question is: since I ...
1
vote
1answer
83 views

Microservice - synchronise data access [closed]

If got a scenario with accounts in any currency. The account got multiple lines/items for each transaction which adds or removes an amount of the account. Basically similar to a bank account. The ...
1
vote
1answer
73 views

Package time config management for microservices

There are solutions in the market such as Spring cloud, Consul etc. which can store and serve env. specific configuration data. But all of these services involve a runtime or boot-time dependency ...
2
votes
1answer
168 views

communicating micro-services in a static language (java)

I'm confronted with a "microservices" architecture consisting of Spring Boot services fronted by a Vaadin Spring Boot application (with an API gateway in between), all written in Java. Communication ...
0
votes
0answers
160 views

How to implement decoupled bounded contexts in microservices architecture?

I'm reading books and watching tutorials about microservices architecture and solutions. They are great and help a lot. They made the statement that sharing data models among services (context) is an ...
0
votes
2answers
161 views

Microservice application design

I am looking at designing an application that has a Microservices back end and a SPA front end. I have some concern about performance, a single CRUD page to populate may require calls to 6 or 7 ...
1
vote
3answers
229 views

Row level access in a monolith application and in microservices based application

I would like to get an advice on how to tackle such a problem. Currently we're using SQL Server as our database and the whole application is a fat, juicy monolith which we'd like to break down. There'...
0
votes
1answer
611 views

API Gateway: Filtering data between microservices

I have a Location Service with an endpoint that returns people near from a given user: GET /users/near?user=7455 [ { "userId": 1214, "location" : [2134983, 89384] }, //more ...
0
votes
2answers
1k views

Shared database into micros services architecture

We've stuck with designing two services. In fact, these two services have been splitted since traffic issues, so they were one before. I mean, our platform is consumed by two sort of clients: other ...
6
votes
1answer
3k views

Why is 'aggregation' not supported in most API Gateway solutions?

When reading about API Gateway, one of things that come up every single time is that API Gateway is a place where you should aggregate results from multiple endpoints. That sounds really nice. However,...
1
vote
1answer
351 views

Handling tokens stored behind different microservices

I have a very interesting question that has proportionally blown up amongst my friends and I. This deals with handling user issued tokens from a series of authentication microservices. Remarks: ...
2
votes
2answers
365 views

How to model a shopping scenario using event sourcing

I am trying to program a simple shopping scenario using event sourcing: --------------- --------------- ---------------- | OrderService | | ProductService | | PaymentService | ---------...
1
vote
1answer
797 views

Service Fabric Microservice AMQP equivalent

TLDR; Is there a AMQP equivalent inside Service Fabric for Stateless services for communication between microservices? I am building an application which contains multiple microservices. For ...
7
votes
1answer
3k views

Search across data cross several microservices

I have data for a certain domain distributed between a microservice and a legacy database. I have a search which spans fields on both legacy and microservice database. Previously (before microservice ...
1
vote
0answers
65 views

How to determine correct scoping for Microservices [duplicate]

Hello fellow Software engineers, I've been doing a lot of research on microservices these last few days and have come across a great deal of articles and videos explaining the concept, programming ...
0
votes
1answer
268 views

Moving to a Micro-services style architecture

Use-case: As part of an Airline Application I am building - I am developing a set of (RESTful) API's each for Flights, Lounges, Loyalty etc. There are some common methods which should be accessible ...
0
votes
3answers
809 views

Microservice and anti-pattern

I am doing a microservice and I was trying to make a decision about how to handle Domain Model. I am planning to have multiple microservices, as an example: A ClientsMS and a PaymentMS. They both need ...
3
votes
1answer
2k views

How to query data from multiple microservices

I have micro service architecture application. One of the services contains all user related information. Another service contains a set of business objects. The Angular UI calls rest APIs of user-...
1
vote
1answer
312 views

What is the common practice for implementing a microservice architecture? [closed]

so I'm trying to understand how microservices are set up in a language agnostic manner for purely experimental purposes. For the sake of having a more concrete example, how would a microservice ...
2
votes
0answers
204 views

When designing an activity-based authorization system, how should additional conditional checks be handled?

When designing an activity-based authorization system, how should additional conditional checks be handled? For example, I have the following authority: VIEW_COMPANY_TRANSACTIONS which allows the ...
0
votes
1answer
571 views

Upstreaming microservices errors

As per the microservice architecure, there should be one codebase per microservice with no shared API whatsoever. This enforces a high level of decoupling and every microservice is bounded within its ...
4
votes
2answers
152 views

Are there worthwhile advantages to creating a separate docker container to handle http?

I've got a Python webapp running in docker container and a DB container/service, and I'm wondering if the apache/mod_wsgi functionality should be contained within the container that runs the python ...
8
votes
3answers
2k views

Scaling monoliths vs. scaling microservices

One of the common arguments for using microservices is better scalability. But I wonder whether this argument is really valid. Lets say we had an application consisting of 10 microservice with 9 of ...
0
votes
4answers
360 views

How to deal with low or medium dev team level?

In our team we have some low / medium level developers: they know how to write C#/JavaScript code, but most of it is an anemic domain model in a purely functionnal way of coding, but there are no unit ...
6
votes
3answers
1k views

Breaking up a monolith into SOA, and breaking referential integrity

When breaking up a large monolithic application with a monolithic RDBMS into a service-oriented architecture with many databases, how do you deal with the breaking of data integrity? I have a large ...
5
votes
2answers
2k views

What are the potential problems with operational circular dependency between microservices

I am relatively new to microservice architecture and I was never before involved in a project where the architect insists on having a circular dependency between services. I am in a position without ...
-1
votes
1answer
362 views

Is smart to connect microservices using adapters?

I have thought for some time how to integrate microservices. I like events a lot, but I don't want to make any coupling between services so I got an idea that I'd make some kind of adapter-...
1
vote
2answers
103 views

How do I centralize data access between a php web service and a nodejs JSON API service?

I have a php web application that is written with traditional architecture with templating, controllers and ORM models. I also have a nodejs JSON API web service that accepts incoming connections and ...
0
votes
1answer
118 views

What are the options to guarantee that a client that's connecting to a server is really who I think it is?

I have a proxy server that talks to a bunch of services and I want to have a way to prove to servers behind the proxy they are actually receiving a request from the proxy server and not from something ...
2
votes
2answers
793 views

Circular dependency in microservices architecture for Authentication

We are planning on using OAuth2 / OpenID-connect for Authentication & Authorization and I'm looking at what services would be required. So far I've identified that I need at a minimum: An OpenID-...
0
votes
3answers
330 views

How do microservices make it easier to avoid overly-tight coupling between components?

I read in this article about microservice architecture by M. Fowler: Another consequence of using services as components is a more explicit component interface. Most languages do not have a good ...
2
votes
1answer
612 views

Event Driven Microservice Race Condition

Say we have 4 services, A through D, which communicate (for the most part) through some sort of asynchronous event-driven system. When a new entity is created in A, B & C receive that event. B ...
0
votes
3answers
228 views

Microservices level of detail

I told my boss that for our next application, we will be creating rest services that follows the microservices architecture. The design I had was somewhat like this: all functions related to users - ...
4
votes
1answer
7k views

What is the best practice when it comes to naming microservices?

I come from a "monolithic" SOA API mindset where, lets say, there would only be one RESTful service for persistence (persistence-app). Now that I'm developing in a microservice environment, I believe ...
1
vote
0answers
255 views

Will use service layer directly from controller or use command, command handler approach to process the request from asp.net web API?

I am going to build a simple asp.net web api application which will send request to 3rd party service and then return back the response to client. Before sending request to external service, I need ...
3
votes
3answers
2k views

Best practice to reduce calls in microservice architecture

I have multiple artifacts (applications) deployed on different hosts (let's call them A, B, and C for simplicity) and I am currently looking for some kind of integration pattern, because I need to ...
0
votes
2answers
510 views

Micro services REST with Javascript user authentication/authorization

I am fairly new to the microservice architecture. I am trying to build a web application in this kind of way. After some research online about microservices and having experience with Spring and ...
1
vote
1answer
305 views

Should API gateway wait until all micro services are done?

for our project, we are using micro services with API gateway pattern. One of the features that the client do is to generate a report. Client, fills a form and uploads a file and our system will ...
7
votes
1answer
285 views

Is the use of a message broker aligned with Sam Newman's Building Microservices?

In one of the projects the CTO has chosen to use a message broker in order to connect microservices. Is the use of such software aligned with the microservices theory? Attempt to answer the question ...
8
votes
2answers
486 views

Should Micro services talk to the monolith that they where extracted from?

I'm planning out a microservice adoption for a rather big monolith. The current plan is to create new features using microservices and constantly extracting features from the monolith into services. ...
4
votes
3answers
4k views

Implementing a caching microservice by avoiding potential bottlenecks

The system I am working on employs quite a sophisticated caching/preloading mechanism for external third-parties, and since it is built on a microservice architecture, I would like to extract the ...
1
vote
1answer
97 views

Service dependencies during local development

I'm working on a system split into multiple services. Some services (and especially the front end web server) depend on other services to function. When developing these locally, do you point to the ...