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.

Filter by
Sorted by
Tagged with
2 votes
0 answers
149 views

Automatically extended database-based mutex lock - is it a good idea?

Since I am working in a multi-instance microservice environment, I came accross a problem with making some operations being performed at most by one of the running instances at once. The solution ...
  • 129
0 votes
2 answers
2k views

Order Management Microservice design pattern

I have question on how to design an order management microservice. An order has different workflow based on the previous state or based on the business needs. I'm guessing at some point cannot keep on ...
  • 101
0 votes
1 answer
102 views

Duplicate Query rest end points in microservices - CQRS

I am a newbie to microservice. Currently I'm learning microservices by creating 2 microservices with CQRS pattern, with NO event sourcing, but each service has separate DB. Each service has separate ...
2 votes
2 answers
401 views

Microservices: Is the Saga Pattern correctly applied here?

I'm trying to understand and learn how to build microservice messages the best and came up with this task for myself: Services given: Accounts Service Token Service Email Service When a user ...
  • 461
1 vote
1 answer
478 views

Handling multiple events in Event Driven Architecture

Let's say I have Service A that publishes Message 1 to be processed by Consumer A The same service A that publishes Message 2 to be processed by Consumer B I need to make sure that consumer B ...
  • 27
2 votes
2 answers
789 views

How to share API between microservices?

Currently, our architecture uses an "API-first" approach in building our product. This product is divided across multiple teams handling different microservices. The above image succinctly ...
0 votes
1 answer
327 views

An API+Worker architecture with a shared DB

We are designing a new service that should do mainly 2 things 1. Get data from a queue, call an API (lets call it APIx) which returns and ID and save the data from the queue+ID to the DB 2. Expose the ...
  • 1,329
0 votes
1 answer
234 views

Where should email notification logic go?

My architecture looks like: Each block is an individual service. There may be more upstreams and downstreams added in the future. The upstreams need to send email notifications to users. Each email ...
  • 159
0 votes
1 answer
105 views

Azure Event Grid API layer beneath a HTTP API layer

I am part of a project/team that is building a new web app in Azure for the first time, having previously built and developed a traditional three tier ASP.NET web app over a number of years. We have ...
  • 335
-1 votes
2 answers
92 views

Are there any advantages to using dockerfile dependencies over virtual environment for Python apps?

I am currently working solo on a very small simple python microservice. I started building this app, mostly by habit, in a virtual environment. As I started to get closer to the point where deployment ...
  • 125
0 votes
1 answer
55 views

SOA communication RESTful API and Message BUS, is it common to have both?

I understand their own characteristics but a lot of articles focus on comparing the two methods but never talked about they serve different purposes within SOA. Eg. Example of ticket system and ...
  • 181
1 vote
1 answer
298 views

Automatic creation/upgrade of database in devops cycle

DevOps of our customer require that our application creates database objects and Kafka topics automatically on application start, if they are missing. Moreover, they want the application to ...
  • 159
0 votes
2 answers
195 views

Events for entity state changes

When an entity is changed, I want to raise an event to notify potential consumers about the state changes. My question is, should I have an xxxChanged event for each attribute, or a single ...
  • 822
0 votes
1 answer
84 views

Slicing into microservices

I'm extracting an image [jpg/png etc] server project from a larger solution. Images are uploaded via an API by authenticated users. The same application also serves the images. The file is validated: ...
  • 111
2 votes
2 answers
739 views

Difference between facade and orchestrator in the context of microservices

Suppose we have 2 microservices - service A and B. These two services are independent for most parts and API client talks to them directly. However, their functionality overlaps or intersects in some ...
1 vote
2 answers
314 views

How to manage primary keys in CQRS

I'm building a backend following the CQRS pattern and I don't know how to manage properly the primary keys (surrogate keys) between the command and query databases. For example: I have a model with ...
1 vote
1 answer
1k views

Does it make sense to reuse microservices in a desktop application with an "offline" mode?

Lets say we have a microservice architecture consisting of: multiple frontend clients, e.g. an Android App, an iOS App, and a Javascript Web Frontend a Java Spring (HTTP Rest) microservice to access ...
  • 143
0 votes
0 answers
406 views

High availability RabbitMQ using gRPC as transport layer?

I have an idea to use gRPC for all microservices communication for the sake of simplicity. Now there is a service that needs high availability, So the idea is to use RabitMQ as a message receiver from ...
  • 677
-1 votes
1 answer
94 views

Pinning Stateful Tasks in Stateless microservice cluster

We have a microservice whose multiple instances are running for High Availablity and Scaling. But although we have multipe stateless microservice there are some tasks which needs to be singleton. For ...
0 votes
0 answers
49 views

Which message pattern should I use for synchronous communincation in Nodejs Microservices?

My Nodejs microservices currently running on Kubernetes are communicating over REST. Does the request-reply model of NATS, which replier needs to return (large data ~ 500kb currently single endpoint ...
  • 109
0 votes
1 answer
2k views

How to organize multiple microservices in a GitHub repository?

I am setting up a Github repository for a project that will have multiple Microservices. I have created a sub-directory for each microservice under One Repository. ProjectRepository \Services ...
1 vote
3 answers
384 views

RESTful URLs for multiple resource in the same Microservice

We are developing a serverless application (AWS API Gateway, Lambda, and Dynamo) keeping users and groups in the same microservice as they are being stored in the same DynamoDB table. REST endpoints ...
1 vote
1 answer
66 views

What kind of bottlenecks are possible when implementing a distributed workflow using a central point of control?

I was going through https://docs.microsoft.com/en-us/azure/architecture/patterns/choreography, the document mentions in the drawbacks of having a central orchestrator that it can become a performance ...
  • 293
0 votes
3 answers
244 views

Is it advisable to have one microservice per tenant?

I have just a few tenants on my application right now, but the number is going to increase over time. The processing logic for each tenant is slightly different from each other and right now the logic ...
6 votes
2 answers
454 views

Multi Tenancy Aware Gateway routing

Hello Fellow Programmers, We are converting our monolithic application into microservice based. One challenge which we are facing is that one of our component is stateful. We cannot make this ...
0 votes
4 answers
664 views

Best practices for calling from one microservice to another in a loop

Let's assume we have a use case where ServiceA needs to make several calls to ServiceB. I know it would be best if the calls could be consolidated as one request, but let's say that's just not ...
  • 101
3 votes
1 answer
246 views

Efficiently updating a common repository used by multiple other repositories

Suppose we have a project consisting of many microservices, all of which use a common library. The common library has been put into a separate git repository, and each microservice is also in its own ...
  • 1,223
1 vote
1 answer
54 views

12 Factor and External Dependencies (Web Server)

Question about the 12 factor principles and, specifically, the dependencies step: https://12factor.net/dependencies From how I read this, the general idea is that you want code that doesn't rely on ...
1 vote
1 answer
146 views

Eventing: Determine if Set of Messages has been Processed

Given a Set of messages sent to a Queue, what are good ways to determine all of the messages have been processed? Constraints: Large number of messages Other messages besides those in the Set will be ...
  • 109
0 votes
2 answers
62 views

Event Driver Microservice Can Storage Sent Message?

I have an event driven architecutre, with many microserver that publish a lot of message in my event bus. In some case i can't track why some process is blocked, maybe because my Service-A haven't ...
0 votes
0 answers
165 views

In a microservices architecture, should each microservice handle its HTTP headers or should a proxy handle them?

In a case where having microservices deployed as containers without any orchestration tool, they need to define some HTTP response headers. A way to achieve it is by having each microservice define ...
  • 129
2 votes
1 answer
269 views

Microservices: CQRS - how does the command side query data?

I’m trying to think what’s the best approach when I need data present in different services in a microservices-based architecture. In an e-commerce context, when a user creates an order the ...
0 votes
1 answer
109 views

Dependencies in microservices configuration

I'm dealing with a system where: A number of around 50 microservices are available Depending on their needs, clients design their deployment choosing which of those microservices they need Most of ...
  • 123
1 vote
0 answers
468 views

gRPC client - to - client communication between other Lan network

I have a question about gRPC communication. I know gRPC has 4 models communication: unay, server-streaming, client-streaming and bi-direction. And the terms "client" and "server" ...
0 votes
2 answers
344 views

How to implement authorization in a microservices architecture?

I'm looking for a way to avoid centralized management of authorization rules. I'd like every microservice to be responsible for the authorization logic of its actions, but I'm having some trouble ...
1 vote
3 answers
238 views

Is it a good practice to isolate the database from public APIs?

We develop web-applications using a javascript frontend framework (ReactJS), to retrieve the data to show, the user's browser calls an authenticated REST API which is our backend (Kotlin+Spring), the ...
  • 119
3 votes
2 answers
196 views

Best approach for inter-process task queues

I have an application made up of multiple processes/workers/services which need to send messages to each other that represent units of "enqueued tasks" to be done. I am trying to find the ...
  • 139
-1 votes
1 answer
61 views

Microservices architecture multi level event buses

Pretty much all documentation on microservices I came across explain just one tiny part of some complex system. I am trying to understand big picture. So my question is: Has anyone expirienced in ...
  • 135
2 votes
3 answers
459 views

What happens if authentication microservice goes down?

We know one of the philosophy behind the microservice architecture is availability. So suppose we have a project that has 6 services working together. One of them is an authentication service that ...
-1 votes
2 answers
743 views

How to have dependency between two different microservices?

I am implementing quora like application in which I have Post(question, answers, comments, likes/dislikes) as one microservice and User details as another microservice. I need user details in the post ...
1 vote
2 answers
286 views

Defining Bounded Context in microservices

I need clarification on something from someone more experienced to see if I am on right course with this. Following Microsoft's eShopOnContainers microservices approach I got interested in building ...
  • 135
-1 votes
1 answer
62 views

Solution design leveraging Graph and Relational database types

Is it viable to leverage both a graph db and a relational db at the same time for the same data sets? Does it even make sense to approach the solution this way? Thinking is i use nodes and ...
  • 227
2 votes
1 answer
480 views

Which git workflow for micro-services and testing

I would like to know what best practices exists out there with regard to micro services, CI/CD, testing and Git workflow, especially the way of working given the constraints that a) nothing should ...
  • 137
0 votes
1 answer
143 views

Distributing responsibilities in a micro service in an Object Oriented manner for a 3rd party integration?

I'm trying to figure out how to structure a 3rd party integration microservice, and how to name the classes accordingly. If you had a classic shopping cart application which processed payments for ...
0 votes
1 answer
46 views

Thought process required to design domain aggregate in micro service architecture?

I am using DDD pattern in login micro service used in employee management software. Here Organization/Company is an Entity and User is one more entity. What are my aggregates in this case, if i think ...
0 votes
2 answers
578 views

Microservices - Should each service have a notion of a user

Should each Microservice have a user account account created for each user that will have resources created for them on the Microservices? For example if there is a user profile service, should there ...
6 votes
2 answers
3k views

Should Docker be used in a Windows Production environment?

As my team's microservice architecture grows, as does the pain of manually deploying each individual service in the application. I've played with Docker before and am now learning to leverage the ...
2 votes
2 answers
424 views

Microservice Design - Many microservices reading from a DB. Antipattern?

I'm working on a system design and feel like I'm doing it wrong. Situation I have two services and they each have a bunch of data they each need. Much is overlapping data from overlapping tables. Also,...
  • 137
-2 votes
2 answers
136 views

Should servers exit with 0 or 1 in case of caught errors?

What is the best practice in case a service has an error which we caught and handled? Do we exit code 1 or 0?
  • 287
1 vote
0 answers
135 views

Topics best practices - AWS SNS and others

I'm designing a medium size project that will have few decoupled microservices. I want to avoid costly architecture mistakes at the very beginning. What I'm wondering (I googled and didn't found any ...

1
3 4
5
6 7
20