Stack Exchange Network

Stack Exchange network consists of 175 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.

0
votes
1answer
82 views

RESTful API Endpoints - Concrete vs OO versioning

I am looking at Versioning Micro Services solutions and got a little carried away with OO design. Using WebAPI, I got to the point where I can use OO design to choose the correct version to run with ...
-3
votes
0answers
29 views

Should a developer be able to create a docker artifact from a lerna monorepo in their development environment? [migrated]

I've recently started using lerna to manage a monorepo, and in development it works fine. Lerna creates symlinks between my various packages, and so tools like 'tsc --watch' or nodemon work fine for ...
0
votes
0answers
24 views

Strong Consistency using one-way communication in microservices [on hold]

So to cut a long story short I've read multiple articles that highlight the fact that in order to reduce coupling between micro services one should prefer one-way communication instead of synchronous ...
1
vote
2answers
203 views

How to discover discovery service

We are designing an architecture of a high availability distibuted system and we are considering server side vs client side service discovery. There is one problem, I need to solve - how is it ...
1
vote
1answer
36 views

Spring Boot REST Java Microservice: Why Use Maven Submodules?

I have seen a project which uses Maven submodules. The project itself is a spring boot application that exposes Restful API endpoints for a microservice ex: Customer Service (getCustomers, ...
0
votes
0answers
8 views

Circuit breaker open when uploading large file [migrated]

I have an existing project with the following microservice architect. Client --> API Gateway(Spring cloud using Hystrix as circuit breaker) --> UploadService. When uploading small file(POST /upload/...
0
votes
0answers
22 views

ACL entity and microservices database relations

I would like to build a microservices architecture to handle the following scenario: I have a building. The building has some kinds of devices. And the devices can be used by the users. In the system, ...
2
votes
2answers
116 views

Passing transient information between two systems

For a complex service that my team and several others maintain, two of my team's applications are called when processing one incoming request. The flow is as follows: an upstream system invokes an ...
0
votes
1answer
56 views

Replacing a shared library with a shared microservice

I understand that generally shared libraries are a microservice antipattern, and the disadvantages of shared libraries in a microservice world are well documented. However, I have not been able to ...
0
votes
2answers
120 views

Load Balancer / API Gateway availability or is it a single point of failure?

I'm developing a microservice system. I have a discovery service (Eureka) for all my services and an API Gateway (Zuul) to call each service via an URL. My problem: How can I assure that a service ...
0
votes
0answers
12 views

How to manage microservice workflows with Apache Kafka

Currently, we have REST-based services and we would like to make an architectural shift to decoupled microservices with Kafka. However, there are a couple of issues not clear to me. 1- How can we ...
1
vote
1answer
76 views

About databases in docker containers

I'm trying to understand containerized apps and databases and I'm trying to understand the microservice architecture using kubernetes. One thing that I couldn't get my mind convinced is the database ...
2
votes
1answer
58 views

Handle localization in microservices architecture

I'm developing a multi culture application with different microservices, The microservices communicate with each others with integrations event, so when a new record is inserted the owner of the data ...
-1
votes
1answer
39 views

Calling microservices after scaling

I am developing a microservice platform with Spring. So far I have a few microservices and a service discovery server where all microservices register themselves. I also have an Angular client ...
0
votes
1answer
34 views

How to deal with non-existing parent resources in url?

I've microservice, let's name it Employee. It only has employee logic, but there's a "foreign key" to the (not really) related company. There's no company resource and no company logic in this ...
-1
votes
1answer
60 views

Pattern for for REST API who's response depends on behavior of requests to other services

Some one help me with my design paralysis! Assume a microservice (probably going to be implemented in Spring Boot) that has implemented an run of the mill REST API, and after receiving an initial ...
1
vote
0answers
39 views

Blue-Green Deployment: how to synchronize and maintain data consistency after migration?

To provide zero downtime upgrades of my highload service I use blue green deployment strategy. Every moment data changing happens, so how to migrate all data consistently? In the moment I switch ...
0
votes
2answers
49 views

Event sourcing in microservices: separate event stores + system-wide event store?

Say each microservice is using event sourcing which means it has it's own event store, do you typically add another "mother" event store that contains all events from all microservices as a source of ...
3
votes
3answers
275 views

Since Microservices are hailed as transformative, why weren't Microservices done in the computing early days? What specifically enabled Microservices? [closed]

I came from a monolithic world and am finding microservices architecture very refreshing and revolutionary. Since Microservices are hailed as transformative, as opposed to the boring monolithic (no ...
0
votes
2answers
148 views

How to create a microservice-ready monolithic app?

After reading the pros and cons of both camps, the consensus I gather is that, go monolith first then microservice only if you really need to. But then those transitioning from an already big monolith ...
0
votes
1answer
49 views

Can Aggregate shared between services?

I am working in an event-sourcing architecture and while creating the aggregates I came to an interesting challenge, disclaimer I'm new to this. I have a UserAggregate encapsulating the logic for ...
1
vote
1answer
71 views

Does a microservice's individual database need to have complete data?

Say you have a Users and Orders service and they have their own database. Since microservices need to stand on their own even if another service is unavailable, does the Orders DB need to have all ...
0
votes
0answers
40 views

Asynchronous Micro-Service Authorization

I have the following setup for my application: A User logs in and is granted a Session Token. When making API requests to Service A the User provides the Session Token. All requests go through an API ...
4
votes
4answers
333 views

How do I manage shared models among many microservices?

My question is similar to this one, but a bit more specific to one case. Let's say I have a payments model, and this is used by my reporting service, as well as my accounting service. Is it ...
0
votes
1answer
73 views

Applying BDD accross multiple microservices

I'm involved in a microservices based application. I'm trying to apply the BDD process for this. I need a recommendation how to apply this process correctly given this type of architecture. It is ...
0
votes
2answers
54 views

Should db commit and message-queue produce be one transaction?

I am making a microservice based architecture and I'm actively seeking antipatterns and trying to avoid them. In multiple scenarios, I have a database commit followed by a message that is produced to ...
0
votes
1answer
62 views

How to ensure persistence in an event-driven microservice architecture?

Right now we have a set of micro services with a client-facing gateway responsible for authentication and routing. MySQL database and RabbitMQ for the message queue. Internal services may queue up ...
4
votes
2answers
296 views

Synchronization of data across microservices

We have 2 to 3 dozen microservices that serve our customers. These services are deployed in a Kubernetes cluster, and they're only accessible to the outside world through 3 or 4 API gateways. We ...
1
vote
2answers
105 views

Microservices and DevOps — Must both always go together?

At the risk of having this question closed as too broad, would like to know if a microservices-based application/architecture could be delivered with a traditional waterfall development methodology/...
0
votes
4answers
164 views

How do you manage objects that are shared between back-end services and front-end services/apps?

I have multiple REST-ful APIs that I'm using as my "back-end". I also have multiple web apps (.NET MVC). These web apps make calls to the APIs for data. So, an object being returned by an API will be ...
0
votes
1answer
66 views

Should we do data migration from Oracle via the microservices, or should we do direct data migration from Oracle to Azure SQL DBs?

We are replacing a legacy application that runs on a single Oracle DB, and the decision has been made to replace it with a microservices-based application running on Azure SQL. Do we do data ...
3
votes
3answers
152 views

How to model User behaviour that can be shared between microservices in Event Driven architecture?

I have an Event Sourced system that has 3 micro services (simplified): User management - Registering a user, change password etc User account - manages debiting/crediting of the user account balance ...
0
votes
0answers
43 views

Data integrity across multiple services

I am trying to explore the patterns around data integrity when applying multiple services with access to the same storage. Let's say I have Service1, which runs in 3 instances. Whenever an instance ...
5
votes
2answers
217 views

How do microservices and 12-factor app principles come together?

I'm wondering how service oriented architectures can follow the 12-factor principles. Designing an architecture as microservices means (to me) that you separate the features in services. This means ...
1
vote
2answers
52 views

API Microservices bundle multiple services as one deployment Vs separate deployable for each service

So I am going to be developing atleast 5-6 Res end points . ( all distinct and stateless ) Now I am debating on the following: Should they be combined as single war / ear or deploy each service ...
2
votes
1answer
107 views

Microservices design: Sharing and populating data

I'm developing a microservices based application and having trouble to understand how api calls should be organized between microservices ... Suppose my application is a products management ...
0
votes
1answer
80 views

Communication between separated application parts

I have searched well before asking this question, and some of the questions look like what I need here, but none of the gave a clear answer to my question. I am writing a web application (in PHP if ...
0
votes
1answer
122 views

Which message pattern should I use?

I'd like to develop a microservice architecture application that sends text messages from one communication provider to another and I'm just considering changing architecture would be best suited to ...
2
votes
2answers
103 views

How to handle Concurrent/Duplicate Transactions in a microservice architecture?

Above Image shows the system design of my application. Things work fine when there is a single instance of my microservice but now I am planning to scale it and have the following concern about it : ...
3
votes
1answer
127 views

Microservice architecture for multiple composite data entities

We have a high read, low write website which currently has monolithic architecture on back end. We have recently started breaking it into micro-services. We have designed some micro-services - ...
0
votes
0answers
39 views

Using signalR for streaming alongside a microservice architecture

I have a cluster of micro services with an exposed search API serving a client app. I want to "stream" in real time the aggregated results of a complex search. The search will be kicked of by the ...
0
votes
2answers
98 views

Does creating multiple REST services calling each other from a monolithic EJB application right approach to make them microservices later?

We are doing an architectural refactoring to convert a monolithic J2EE EJB application to Spring services. In order to do that I'm creating services by breaking the application against the joints of ...
1
vote
1answer
90 views

Designing alerting micro service

I am working on an application that involves alerts as well as notification policies for multiple users. I am using microservices and am trying to keep them stateless if possible. I have one service ...
1
vote
3answers
245 views

Different Redis instances for different microservices?

Say that we have Kubernetes running with n pods, each being a separate microservice. Now, some of those services need a caching layer. When we take into consideration: the fact that Redis was tested ...
1
vote
2answers
69 views

How to deal with delayed updates?

I have a microservice-based system that has a product service and a store service. I'm using eventstore to propagate events between microservices, so for example when a product is created, the store ...
1
vote
1answer
118 views

Microservice Architecture in Azure - Ideas for improving performance

We are about to develop a microservice architecture with azure functions inside azure. We thought about using interservice communication with durable functions. On app site we want to use an async ...
0
votes
0answers
39 views

Which OAuth2 Flow?

I'm just getting into OAuth2 and I'm a tad confused (you've probably heard that before)! I am writing a small independent service which will expose a basic REST API enabling client applications to ...
1
vote
1answer
42 views

How to deduplicate messages coming from having multiple instances of the same observer

I have a web application that is currently of some different services, one instance each. My current goal is to scale some of my services to ensure fail over. One big problem I foresee is that a ...
2
votes
1answer
59 views

Keep Hitting 3rd party API or Store Commonly Queried Data In DB?

Colleague and I have begun a long (and hopefully fruitful) project. I've been building and have come to my first crux, and now I ask the experts of the Stack Exchange for their guidance. I'll keep ...
0
votes
1answer
60 views

How to solve cache eviction when not using distributed cache in microservices?

Let's say we will not use distributed caching because we want that our microservices are independent and they do not have many single point of failures. Either we will have in-memory cache (simple ...