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
0 votes
2 answers
506 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 ...
user avatar
0 votes
1 answer
195 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 ...
user avatar
  • 1,329
0 votes
1 answer
199 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 ...
user avatar
  • 159
0 votes
1 answer
90 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 ...
user avatar
  • 325
-1 votes
2 answers
86 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 ...
user avatar
  • 115
0 votes
1 answer
54 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 ...
user avatar
  • 181
1 vote
1 answer
224 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 ...
user avatar
  • 159
0 votes
2 answers
121 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 ...
user avatar
  • 822
0 votes
1 answer
77 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: ...
user avatar
  • 103
2 votes
2 answers
507 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 ...
user avatar
0 votes
2 answers
209 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 ...
user avatar
0 votes
1 answer
818 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 ...
user avatar
  • 133
0 votes
0 answers
265 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 ...
user avatar
  • 657
-1 votes
1 answer
90 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 ...
user avatar
0 votes
0 answers
45 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 ...
user avatar
  • 109
0 votes
1 answer
1k 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 ...
user avatar
1 vote
3 answers
222 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 ...
user avatar
0 votes
1 answer
50 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 ...
user avatar
  • 145
0 votes
3 answers
173 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 ...
user avatar
6 votes
2 answers
362 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 ...
user avatar
0 votes
4 answers
395 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 ...
user avatar
  • 101
3 votes
1 answer
181 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 ...
user avatar
  • 1,193
1 vote
1 answer
52 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 ...
user avatar
1 vote
1 answer
114 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 ...
user avatar
  • 109
0 votes
2 answers
61 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 ...
user avatar
0 votes
0 answers
100 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. I understand a way to achieve it by having each microservice ...
user avatar
  • 119
2 votes
1 answer
210 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 ...
user avatar
0 votes
1 answer
94 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 ...
user avatar
  • 123
0 votes
0 answers
260 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" ...
user avatar
0 votes
2 answers
227 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 ...
user avatar
1 vote
3 answers
183 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 ...
user avatar
  • 119
3 votes
2 answers
138 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 ...
user avatar
  • 139
-1 votes
1 answer
57 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 ...
user avatar
  • 135
2 votes
3 answers
388 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 ...
user avatar
-1 votes
2 answers
477 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 ...
user avatar
1 vote
2 answers
215 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 ...
user avatar
  • 135
-1 votes
1 answer
50 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 ...
user avatar
  • 227
2 votes
1 answer
269 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 ...
user avatar
  • 137
0 votes
1 answer
108 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 ...
user avatar
0 votes
1 answer
45 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 ...
user avatar
0 votes
2 answers
383 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 ...
user avatar
6 votes
2 answers
2k 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 ...
user avatar
2 votes
2 answers
301 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,...
user avatar
  • 137
-2 votes
2 answers
132 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?
user avatar
  • 277
1 vote
0 answers
95 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 ...
user avatar
1 vote
3 answers
169 views

Which code to copy-paste and which to centralize?

In a fairly complex system with a dozen or more git repositories, most of them are done in a cookie-cutter fashion. What is or would be your best approach to deal with duplication? In my opinion the ...
user avatar
  • 149
-1 votes
1 answer
192 views

How to manage microservice dependencies in local development?

I'm currently developing two microservices to be deployed on kubernetes, but already facing problems to onboard another person to work on a feature in microservice A. The dependencies are as follows ...
user avatar
  • 149
0 votes
2 answers
104 views

Best way to package Resources in the microservices

I want to know if there is a best practice around packaging the Resource classes of micro-services. By Resource classes I mean the contracts (like request, responses and error objects of the service) ...
user avatar
  • 197
0 votes
0 answers
66 views

Redundancy approach for Pub-Sub application with events replication

I'm new to the microservices field. I'm looking for the right approaches regarding how to deal with the challenge of redundancy of a pus-sub application. Assume my application has has the below ...
user avatar
  • 101
-1 votes
1 answer
186 views

Should I use a single MySQL database (as in schema) for microservices?

I'm developing a microservice system, and I was wondering whether or not all services should share the same database under a single MySQL instance. I can't think of any meaningful disadvantages of ...
user avatar
  • 113

1 2 3
4
5
19