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
-1
votes
0answers
31 views

Converting monolithic application to microservice architecture with sagas

I'm looking for architectural guidance. I've got this monolithic application. It has a payment platform functionality, where payments are made, scheduled or on demand, via some banking API. Payments ...
-1
votes
1answer
40 views

Distributed transaction reconciliation architecture

There is a minor difference between Saga pattern https://microservices.io/patterns/data/saga.html and my use case below. Saga pattern is about distributed transaction when an event is happening vs my ...
0
votes
1answer
67 views

Can I store a refresh token in a queue?

We have a standard microservices setup (Identity Server, API Gateway, services, etc). Some of the services schedule events to be dispatched in the future (future = anything from mins to months ahead) -...
2
votes
4answers
176 views

Are my Microservices too granular?

As the title states, I'm wondering if my current architecture is currently too granular. Additionally, I'm curious if I should be pursuing a microservice architecture in the first place. For context, ...
2
votes
0answers
34 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 ...
0
votes
2answers
67 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 ...
0
votes
1answer
32 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 ...
-1
votes
0answers
30 views

Data flow in microservices

I am involved in architecting a Backend distributed system in a cloud environment to process data that would involve few thousands to a million transactions per day. Some of design aspects are: We ...
0
votes
1answer
72 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 ...
0
votes
0answers
45 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 ...
0
votes
2answers
119 views

How to share API between microservices?

Currently, our architecture uses "API-first" approach in building our product. This product is divided across multiple teams handling different microservices. The above image succinctly ...
0
votes
1answer
98 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 ...
0
votes
1answer
93 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 ...
0
votes
1answer
36 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 ...
-1
votes
2answers
65 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 ...
0
votes
1answer
39 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 ...
1
vote
1answer
100 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 ...
0
votes
2answers
75 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 ...
0
votes
1answer
61 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: ...
2
votes
2answers
144 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
2answers
111 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 ...
0
votes
1answer
189 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 ...
0
votes
0answers
46 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 ...
-1
votes
1answer
77 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
0answers
45 views

Best way to share code of micro-services written in the server-less framework

The microservices are going to be owned by a specific team. These microservices each will have their own resources such as DB, API Gateway, queue e.t.c. Other teams will have their individual ...
0
votes
0answers
40 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 ...
0
votes
1answer
139 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
3answers
97 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 ...
0
votes
1answer
35 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 ...
0
votes
3answers
121 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 ...
5
votes
2answers
162 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
4answers
118 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 ...
3
votes
1answer
148 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
vote
1answer
45 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
1answer
62 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 ...
0
votes
2answers
53 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
0answers
65 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 ...
2
votes
1answer
140 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
1answer
77 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 ...
0
votes
0answers
35 views

Hybrid REST and Graph Databases architecture with microservices

I've come across Graph Databases recently and I am wondering how much sense does it make to use in my scenario and I'd like some more expert advice on it. I am building microservices for an ...
0
votes
0answers
44 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
2answers
97 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 ...
0
votes
0answers
38 views

REST Web services: Routing based versioning VS Adapter Based Versioning

I'm working on a microservice-based architecture and there is no versioning at all in one of the core services of the system. However, we will need to change the service in a way that will break the ...
1
vote
3answers
144 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 ...
3
votes
2answers
108 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 ...
-1
votes
1answer
51 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 ...
2
votes
3answers
262 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
2answers
69 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
2answers
77 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 ...
-1
votes
1answer
45 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 ...

1
2 3 4 5
16