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
vote
0answers
88 views

In a microserices environment, how to track which version of which service is deployed where and when?

TLDR How do you keep track of which version of which microservice is deployed in which environment? In Details Say your company has dozens of Microservices and 5 different environments (Dev, QA, Prod, ...
0
votes
0answers
50 views

Distributed transactions within a microservices architecture

In my company we had a system on .net framework platform. That was made from an orchestator, different rest API services on top of a monolithic oracle DB. With a huge plsql library. We used ...
0
votes
1answer
130 views

Suggestion a Safe Strategy to Migrate to Monorepo

Consider a bitbucket project with 3 separate repos, A, B, C. These form the components of a microservices application, APP. We'd like to safely try out a monorepo pattern and see if it streamlines ...
7
votes
3answers
348 views

Event Driven Architecture - Best Practice

I am trying to understand the best practice around the event-driven architectures. say I have 2 services order service and inventory service. An user wants to order product and sends a request to ...
2
votes
4answers
193 views

Bug triage on a micro-services architecture

We do have a micro-services architecture with a team assigned to each micro-service considering it as a product on itself. The "real product" is a front-end that uses multiple micro-services ...
-1
votes
1answer
124 views

What is the most common approach for microservices to access data managed by other micro services?

I am exploring using a microservice architecture. Among others, this would include three services, an Orders Service, a Products Service, and a Fulfillment Service. Let's say the Fulfillment Service ...
1
vote
2answers
132 views

How to make consumer idempotent when publisher publishes "at least once"?

I'm trying to implement microservices and I'm still super new to the subject, but, I was able to answer most of questions. However, one of the questions that I can't come up with a good solution to is ...
3
votes
4answers
1k views

HTTP POST request status 200 vs 204 vs 404

Our POST API takes in an identifier (let's say deviceId) in order to compute the accuracy of the location we have stored for that device in a DB; the result of that compution is then saved in a ...
1
vote
0answers
65 views

Strategy for a worker microservice to communicate with GraphQL API

I am trying to find the best way for a microservice to communicate with GraphQL Basic scenario: Client subscribed to GraphQL via Subscriptions (WebSockets) Client creates an Item using Mutation which ...
0
votes
0answers
137 views

How to save to database and publish atomically? ( all or none )

I'm trying to implement microservice architecture to our application (basically an ecommerce) and one of the challenges that I can't really find a good answer for (despite being so many similar ...
2
votes
1answer
125 views

How to design asynchronous communication in microservices?

Intro Hey, my question is kind of hard to explain so I apologize in advance. Question I'm trying to implement microservices for our ecommerce and I'm having issues on how to respond to a request when ...
0
votes
1answer
97 views

Implementing the microservice pattern

We are developing a system that runs a certain kind of simulation for our customers: Every simulation runs on it's own server. We typically have a two digit number of simulations running. A client ...
0
votes
1answer
178 views

Can modeling Firestore using CQRS concept will prevent from Firebase locked-in?

I decided to go with Firestore to our new project. The goal is I don't want our server logics and database designs are locked-in by Cloud Function and Firestore, And also long-term maintainability. ...
2
votes
1answer
356 views

Communication between services in a microservices architecture, is direct communication okay?

I've been reading a lot on why one should use messages (w/ event sourcing/CQRS) for microservices communication and I get it. But most of the stuff I read online state that the main reason for using ...
2
votes
1answer
158 views

Data replication via message broker or built-in replication feature?

I'm working on a microservice system where 8 services share the same data - most notably: auth, forum, portal. Essentially, forum and portal use users from auth, and since I went with the 'AP' ...
0
votes
1answer
64 views

Data aggregation microservice based on user profile

I'm trying to learn about microservices and best practices and came across this scenario and didn't know what was the correct way of approaching it: I have a website that can display widgets (let's ...
-1
votes
1answer
80 views

How is scallability and reliability provided to microservices?

Good afternoon, I'm getting into microservices - in fact, I've managed to make few full projects based on that architecture - but they weren't really robust, so I couldn't get the full scope of using ...
1
vote
4answers
115 views

should microservices be orchestrated, or work independently

it might be too opinionated, but I've been struggling in this for far too long and cant seem to make up my mind. I am trying to compare two approaches to designing a system: Lets assume You want to ...
3
votes
0answers
69 views

AWS Serverless Microservice design

I am building an open source task management and note taking service that runs on AWS. I'm building it mostly as a hobby in my spare time and will eventually ship a mobile app that consume it into an ...
1
vote
0answers
65 views

How to handle the co-exist phase of Strangler pattern gracefully

We are consolidating a number of disparate monoliths, redesigning and implementing a greenfield suite of microservices and micro-frontends. The stack is all new, the design is all new - it couldn't ...
1
vote
4answers
1k views

The meaning of "Fix Version" field in Jira, while working in agile, microservices and CI/CD processes

When working on a monolith application in a "waterfall" process, a "Fix Version" field makes a lot of sense. Say you have the "November 2020" planned release, you can add/...
0
votes
1answer
199 views

What is the most common stateless way for authentication in microservices?

I'm trying to get into Microservices by creating a project, so far I've stumbled upon authentication mechanisms, in a monolithic architecture, the client (web app) would send a request with the user ...
0
votes
0answers
61 views

Single DB - Multitenancy with microservices

We are migrating from a monolith to microservice. Note : We store the tenant details in master tenant db which is seperate from the application database As-is: The app serves multiple tenants and has ...
0
votes
1answer
278 views

Design a correct microservices architecture with data relations

I just started thinking about building a microservices architecture for learning purposes. I understood that microservices are split, and they should be independent, even when storing data, but what ...
0
votes
3answers
288 views

Is microservices architecture a good candidate for a pipeline?

I have a monolithic application which can be divided into multiple steps and different steps have variable scaling requirement, however the input of the next step is the output of the current step. ...
0
votes
1answer
57 views

Using rest services or python modules directly?

Imagine you're in a Python setup, with all of the projects you're working on. Now, as a base line, you have a Python module that is the backbone (backbone.py) to everything when it comes to getting ...
1
vote
1answer
127 views

Building a Microservices App -- Can you give feedback on architecture?

I did some googling, and I was directed to Software Engineering to ask architecture questions. If you know of a different forum that could help me, please direct me to it I recently started learning ...
0
votes
1answer
43 views

Service integration with large amounts of data

I am trying to assess the viability of microservices/DDD for an application I am writing, for which a particular context/service needs to respond to an action completing in another context. Whilst ...
0
votes
1answer
291 views

Multitenancy - Get tenant in microservices architecture

In a multi-tenant architecture where each tenant has its own database, what would be the best way for each of the microservices to obtain information about the tenant (such as which database to ...
2
votes
2answers
71 views

Where to place an in-memory cache to handle repetitive bursts of database queries from several downstream sources, all within a few milliseconds span

I'm working on a Java service that runs on Google Cloud Platform and utilizes a MySQL database via Cloud SQL. The database stores simple relationships between users, accounts they belong to, and ...
1
vote
0answers
170 views

RabbitMQ messages reliability for at-least-once delivery

I wanted to ask what are the possibilities of maintaining reliability when exchanging messages between microservices, when one of those message is rejected. As of today, we don't want to lose messages,...
0
votes
1answer
64 views

Microservice Two-Phase Commit: Transaction coordinator is down in the middle of process

I've just read this article, about handling distributed transactions in the microservices world. In the article, the author explained two possible solutions available. I'm familiar with SAGA. But ...
8
votes
4answers
522 views

DDD in microservices - where to draw the line of responsibility of a microservice?

TLDR: If microservice A needs to combine data from services B & C (that are not aware of one another), should B (or C) do the data merging for service A, or it will be up to service A? In Details ...
1
vote
1answer
580 views

How to build a data pipeline through several microservices

We are building a microservice architecture. We have one service which imports a set of data (usually, ca. 10MB). Another service should do some analysing and manipulation stuff on these data. A third ...
0
votes
1answer
85 views

Passing an OAuth Token between services with Zero Trust and audience checks

Let's say, we're using an OAuth / OpenID Connect (OIDC) flow (in a Zero-Trust situation) to secure two APIs: ServiceA and ServiceB. To implement some of the functionality of ServiceA, it depends on ...
1
vote
0answers
56 views

Multitenancy - Multischema DB and should we handle by individual microservice basis?

I am looking into the revamping my organization's application by moving from a monolithic into a microservice-architecture. My database is a multi-schema shared in one database. Each of these schemas ...
0
votes
3answers
135 views

How grained should microservices be (in this case)?

I'm working on a big project with easily defined boundaries and domains. The project includes: Portal (news, articles, encyclopedia, users) Forum (threads, posts, users) Chat (messages, users) ...
-1
votes
2answers
440 views

Common library for classes and communication between microservices?

I have been working on a project that is being built around a microservices architecture. We are thinking on using a message broker, such as RabbitMQ, for both synchronous (via RPC) and asynchronous ...
0
votes
1answer
49 views

How to secure messaging-based communication with microservices

I'm comfortable with a lot of OpenID Connect and OAuth2 concepts in the context of HTTP-based communication between microservices. I'm currently leveraging Azure AD. In the HTTP-based scenario I would ...
3
votes
1answer
440 views

Database per tenant architecture with microservices

Our team is currently building out an application built with microservices. This application will handle many tenants (organizations) with a database per tenant design. Authentication is handled by ...
2
votes
1answer
77 views

Sharing data between (macro) microservices \w replication or fetch-on-demand?

I'm working on a complex system that follows the principles of microservices, but with one exception - my services are more 'generalized' and big (I refer to them as macroservices further down the ...
1
vote
1answer
67 views

Correct format to receive datatime data from consumer

I am working on a service in a sprint boot microservice application. The consumer for my service can be another service, as well as a UI component. The are 5 entities in my service, each entity having ...
0
votes
3answers
540 views

How to handle data inconsistency in microservice architecture?

Let's assume we have two services - user and auth with a message broker in between. user service handles CRUD action on user entity and auth service handles authentication. When a user is created/...
2
votes
1answer
315 views

Single vs Multiple Technology Stacks

So... The architecture has recently been put under the reign of a Reference Architect. The Reference architect, I will refer him as RA, started to work and the results were immediately visible: we ...
2
votes
0answers
106 views

Minimizing infrastructure code surface for NodeJS microservices and libraries

My company has about 200 repos for microservices and libraries that we share. It's largely been great, but it's hard to keep DRY at the organizational level. We'll often have a large amount of package....
-3
votes
1answer
89 views

How to get Address pincode inside Customer class

I have 2 domains Customer and Address using using EventSourcing and CQRS in our Monolithic app, below is my query: Customer Domain: class Customer { //Aggregate class String custId; ...
0
votes
2answers
65 views

Cancelling a background service from another microservice in load balanced environment

I have 2 microservices [A], and [B]. These microservices run in a load balanced environment and there may be N instances if each microservice running. The microservices communicate via a message ...
0
votes
1answer
136 views

Best way to scale a service that fetches data and has a REST API to query it

I have been developing a service that fetches data and also has a REST API to query the fetched data. The problem I have is, when this service starts it is starting the data fetching process, and this ...
3
votes
3answers
372 views

Avoiding infinite loops in SOA / Enterprise Integration messaging

Thinking within a Service Oriented Architecture / Microservices / Enterprise Integration framework how does one avoid infinite loops when publishing messages between systems, especially when one has ...
0
votes
1answer
256 views

Race conditions in API calls within Golang microservices

I have a microservice architecture running on Heroku. I am having some problems handling race conditions. The problem is, that service A: Needs to fetch the user's balance through an API call to ...

1 2 3
4
5
18