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.

0
votes
0answers
12 views

Moving from Laravel Monolith to Lumen Microservices

Suppose, I have a big monolith application. Now, I want to move my monolith application into microservices. In that case, where should those Jobs go? My jobs update the DB rows. So, when I move the ...
-2
votes
1answer
33 views

Whats the pros and cons of RPCs vs. HTTP in information exchange in microservice architectures?

What type of components could benefit from RPC over HTTP, vice-versa? Does there exist other information exchange mechanisms, what are their use? I've seen smart people use both, I'm sure for ...
0
votes
1answer
59 views

Design scalable solution with queue

Assuming the following scenario: A web application that receives inputs from the user and process the inputs through an algorithm which takes between 5 to 25 minutes (depending on the inputs) and ...
1
vote
1answer
73 views

Microservices - Use case for shared database

We are floating around with the idea of breaking our monolithic application into microservices. The problem we are facing is there are parts of the application the business is not willing to accept ...
3
votes
1answer
128 views

Context separation in microservices

I work in a small company and we are about to delve into the Microservices world. As expected, we are hitting a few bumps. As of now, we are working on a new software to manage heavy machinery, but ...
7
votes
4answers
413 views

If a microservice architecture needs a separate database per microservice then it's too costly & unmanageable. Why do we even need it?

I read about microservices and it seems illogical to me to create a separate DB per service just to achieve isolation. I can achieve the same using only web services and a single database. Why do we ...
0
votes
3answers
74 views

Does a change to a monolith require the whole application to be deployed?

In the book Building Microservices by Sam Newman, on chapter one in the section Ease of Deployment there's a sentence that has left me bothered: "A one-line change to a million-line-long monolithic ...
0
votes
2answers
70 views

DDD - Domain events vs application events

I'm considering two types of notifications: Domain events used internally within a bounded context Application events used to exchange notification messages between bounded contexts Each aggregate ...
0
votes
2answers
73 views

In which layer should a microservice should send a message to another microservice

In our monolith application, the piece of code that used to handle sending SMSes and emails was written in our business layer. Now the responsibility of sending emails and SMSes is handled by a ...
29
votes
1answer
3k views

When developing a system by myself, should I use microservices?

I'm beginning a new project at work, and will likely be nearly the sole developer on the project, though one or two other developers will need to integrate existing applications or simple scripts into ...
5
votes
2answers
156 views

How can we keep sight of business flows in event driven architectures?

I am planning to set up an event driven architecture using Spring Boot apps that publish and read messages from a Kafka broker. Let's suppose it were an e-commerce application with the usual events (...
-3
votes
0answers
31 views

Using a service mesh like Istio, do I need a message broker any more?

I am learning microservices and came a cross the service mesh concept. I understand that in a traditional microservices architecture, asynchronous messaging is often preferred over synchronous. But ...
0
votes
1answer
91 views

Message Bus v Mediator pattern v In Memory Bus

I am struggling to understand when to use each of these: 1) Message Bus: Used to send integration events between Microservices. For example, Microservice A could publish an integration event, which ...
0
votes
1answer
56 views

How an async response is usually getting back to the clent in typical reactive highload architecture?

A typical highload reactive architecture is: (Q means queue) And usually arrows are from client to DB at such sketches. My question is how the response is going back? The same queues and other stuff?...
0
votes
0answers
43 views

Microservices - useless server vs code sharing

We need to deploy on-demand parts of a static website (in addition to a core site) on lots of independents but not so performant hosts. We use docker to deploy our system efficiently and use nginx as ...
0
votes
2answers
57 views

Microservice authentication between services

Is there a way to ensure that serviceA is called only by serviceB(or a set of whitelisted services)? All the services are independent and do not go through a service gateway as they are completely ...
0
votes
0answers
29 views

Maintain a file that exist in multiple repository

We have gradle.properties that exist in 15 microservices repo. If we(devops) need to change a property, we need to go all through that microservices, commit changes and push. How to deal with this ...
0
votes
1answer
25 views

Schedule tasks involving multiple services in a microservices environment

I am trying to solve the following problem in a microservice architecture. I am very new to this architecture so let me know if I miss use some of the concepts. Here is the problem I need to solve: ...
1
vote
1answer
87 views

Logging architecture in microservices

We are going to develop an enterprise level application which will be run by a dozen microservices. Every microservice will be inside docker and all this will be orchestrated by Kubernetes. Obviously, ...
3
votes
2answers
188 views

Microservices communication: Avoiding single point of failure

As far as I know, there are two commonly used patterns when dealing with services communication in a microservices architecture: Direct-calling other services. For example: Service A handles some ...
-5
votes
0answers
53 views

Is it worth it to create a pdf generator microservice?

We are thinking in creating a microservice which it will generate pdfs connected to a service bus. Other microservices will interact with it with events. The microservice will have a database. The ...
4
votes
3answers
231 views

How to handle foreign key constraints when migrating from monolith to microservices?

My team is migrating from a monolithic ASP.NET application to .NET Core and Kubernetes. The code changes seem to be going as well as can be expected but where my team is encountering a lot of discord ...
0
votes
2answers
62 views

Proper way to manage database for distributed backend architecture

My application backend consists of a bunch of standalone tasks linked together by messaging queues. They all need to access the same SQL database in order to run and store their results. Right now, ...
0
votes
1answer
122 views

Implementing CQRS inside a Microservice

I am considering a CQRS refactoring process. It is more of a learning exercise in my spare time. The use case is similar to a price comparison website where a user enters their details for a ...
1
vote
1answer
132 views

File storage microservice design

Problem overview: I'm creating a spring application just for learning purposes. I would like to create a microservice just for files, which: at the beginning would have only two basic endpoints ...
3
votes
4answers
170 views

How to handle transactional operations in an event-driven architecture?

I'm trying to flesh out an eCommerce system using microservices (.NET Core and Kubernetes), event sourcing (Kafka), and CQRS. The particular use case I've been thinking about is as follows. There is ...
2
votes
0answers
44 views

UI syncing in case of bulk operation api

In a CQRS system, the convention that we follow is we render the detail view of an aggregate(i.e getById) using the write model and views containing multiple aggregates(like a dashboard) using read ...
2
votes
0answers
40 views

How to design a sync api exposed to third party which involves a business transaction across aggregates?

Business Domain In the Sales domain, I have 3 entities - Lead, Contact and Opportunity. A lead is injected into the system from many sources and nurtured. If it is a prospect then it is converted ...
2
votes
4answers
181 views

User registration flow in microservices

Let's say I have multiple microservices like authorization service (OAuth2 with JWT), VideoService and MyApplicationService. The VideoService provides videos for MyApplicationService. Both services ...
0
votes
3answers
133 views

Microservice JOIN query

I know this question came up by a lot of people here and around the Internet but I couldn't manage to find a really clear explanation how to do queries spanning multiple microservices. Imagine that I ...
4
votes
1answer
67 views

Local user cache in posts microservice

Given following microservice architecture: Every post has a user, for which we want to have all information available. Is more custom to: Have a local user cache in the posts microservice Make ...
3
votes
3answers
95 views

How are new bounded contexts deployed, and bugs fixed, in message-driven “autonomous” microservice architectures?

I'm coming from the monolith background, using a single large relational database. From my research, many proponents of the microservice architecture favor the event-driven rather than REST driven ...
2
votes
1answer
50 views

System design for multiple workers

I need to design a system where there are many micro-services which we can think of as crawlers that poll 3rd party resource and if they find some new information they pass it to some other service ...
0
votes
0answers
35 views

microservice authentication/ authorization: system token vs user token

I'm building a microservice architecture where basically each service represents a resource and each action on those resources are accessed control and secured by a UserToken (JWT) generated by a ...
2
votes
1answer
100 views

Microservices loose coupling using distributed business logic or centralized?

How do we achieve loose coupling in the below scenario: N microservices (let's call them Callers) needs a logic or business( let's call it Worker) to be executed with different contracts. Although ...
0
votes
1answer
114 views

Microservice to access databases [closed]

Our company is designing a new ERP based on microservices. The reason we want to implement microservices is because we noticed that some critical parts of the old ERP are being heavily used by our ...
0
votes
1answer
66 views

Which scenario is the best for service worker architecture?

We know about using service workers in modern web sites. Consider a scenario back-end as node.js and SQL Server. Data is loaded from central database to local customer web app (DB is about 700 MB) ...
1
vote
2answers
132 views

Microservices data - eventual consistency - initial state?

Let's say you have two microservices (contrived example): Customers service Dashboard service In the customers service, you manage all aspects related to customers (address, preferences, whatever). ...
1
vote
0answers
104 views

How to maintain table relationship across services in with a micro-service architecture

I have a scraper service that looks for media online. For every source type, there are two tables. A common source table and a source_type_media table that are related by source.id to ...
1
vote
1answer
65 views

Logging Architecture Solution

Let me start by setting up the context briefly. In our organization (a Big Data company), there are many different systems, including Web sites, workers (system listening to queues and/or topics), ...
8
votes
1answer
222 views

Do Microservices behind an API Gateway need to verify the Access Token?

I have a bunch of microservices that are only accessible externally via an API Gateway. My API Gateway is set up as an OAuth Resource and validates the token (Checks signature etc.) before passing ...
0
votes
1answer
92 views

Message Broker vs. iPaaS

Does anyone have suggestions/recommendations/guidance they can offer on when to use a message broker like RabbitMQ/Kafka vs. an iPaaS solution like Mulesoft/Jitterbit/Dell Boomi/Workato? Can they ...
1
vote
1answer
84 views

Event Driven Microservice Architecture & Dealing with synchronous external neighboring systems

Let’s say I have an event driven microservice system - a microservice cluster - that takes orders and works with them. Orders are placed by an external neighbor system that is working synchronously ...
0
votes
0answers
38 views

How microservices and EIP relates

I've been working some time in microservices architectures and have created multiple micro services using Spring Boot framework, let's say UserService, AccountService, BillingService, ...
1
vote
2answers
60 views

Microservice boundaries definition and dependencies handling

I'm reading a lot about microservices but one thing remains a bit unclear to me. Let's say in my organization, I have 2 abilities: Extract street names from one or more blocks of text Given a ...
0
votes
1answer
17 views

Validate Entity Key from another microservice comming from UI

Let's say an Orders service knows only about the CustomerId from Customer service. When the user places an order, the CustomerId gets transferred from the composite UI along with the OredrDto. The ...
-1
votes
1answer
103 views

API gateway for web-fronted applications, is it worth it?

So am in the process of developing a new application and am welling to adopt a micro-services based architecture (am new to that). The problem is that the application will be exposed to the final ...
0
votes
1answer
344 views

Microservices - sharing data through distributed in-memory cache?

I'm fairly new to both microservices and shared in-memory databases like Redis. I'm wondering though if it would be a good idea to combine the two to address the challenges of data duplication, ...
1
vote
2answers
96 views

Developing and debugging microservices locally

The use case: I am working on a microservice based architecture and I am wondering how I am supposed to debug a microservice (with my IDE attached to it) on my local machine where I develop it. The ...
0
votes
1answer
92 views

Should I Microkernel or Microservice my legacy ERP?

I have been working on an n-tier monolith application for a couple of years, and want to build a plan to transform this big ball of mud to a more maintainable system. I came across Software ...