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
1 answer
37 views

In a microservice architecture, can individual microservices contain any configuration file? Is keeping a small config a good practice?

I thought, In a microservice architecture, only the "Configuration Server" will be responsible for providing configuration to individual microservices even if it's a small config. So that we ...
user avatar
-2 votes
0 answers
24 views

What's the best way to aggregate data in a micro service architecture?

Imagine you have something like a BFF (Backend for frontend) that holds many entities coming from different microservices. Those entities don't have any foreign key constraints because each entity is ...
user avatar
-3 votes
2 answers
58 views

best practice to recover or handle a request that is half completed or partially failed [closed]

Assume I have a request: app.post('/order', ()=>{ // task 1 // task 2 // task 3 }) and task1 and task2 is completed but task3 failed. for example a user paid order successfully but saving order ...
user avatar
0 votes
0 answers
20 views

Preferred way to handle authentication in a microservice architecture

I have a dummy application that serves tickets separated in two apps and a database. One app is the backend app, it knows only JSON and serves a port in a specific container locally. It handles ...
user avatar
  • 2,011
0 votes
1 answer
136 views

Should Microservices share workers

If I have two APIs that I'm considering to be two separate micro-services, each with their own database, how would I handle worker processes for each of these micro-services? For example, if each API ...
user avatar
  • 3
0 votes
0 answers
55 views

When does it make sense to have an implicit contract between a runtime env. and an internally used library?

┌────────────────────────────────────────────────────────────────────────────────────────────────────┐ │ ...
user avatar
  • 101
1 vote
1 answer
28 views

Architecture for migrating to Identity and Access Management microservice

This might be quite trivial for some, but I am studying how to migrate from a monolithic server to a microservice architecture, starting from the Identity and Access Management side. My current server ...
user avatar
-2 votes
1 answer
56 views

Domain Driven Design: ElasticSearch and Postgres together

Let me start by saying my knowledge of microservices isn't as strong as it could be. My understanding of DDD is that we'd draw a bounded context over an entity and that would be our service. How does ...
user avatar
2 votes
4 answers
208 views

What are the advantages of externalizing application configurations?

I was learning about micro services with spring boot and came across spring cloud config server which is used to exernalise application configuration.The advantage it state is that one can change the ...
user avatar
  • 129
1 vote
2 answers
109 views

Making data available for multiple microservices

We have a design challenge here for a project we are working on and I wonder if folks from the community can provide some guidance: Our product is built in a microservices structure. So we have ...
user avatar
  • 111
0 votes
0 answers
46 views

Should authorization be implemented within each service or in a central location?

For example, let's say we are building a service to manage employees for a retail corporation: POST employees GET employees GET employees/{id} PUT employees/{id} DELETE employees/{id} You would want ...
user avatar
  • 109
-2 votes
0 answers
29 views

In Microservices environment, if there are multiple services tied up together in a Chaining manner then how below scenarios will be covered

If Microservice 1 ---> calls Microservice 2---> calls Microservice 3 and so on… 1. What should be the transaction rollback approach if let says the call between Microservice 2 and Microservice 3 ...
user avatar
0 votes
2 answers
51 views

How do event sourcing services recreate the state of an entity?

I'm reading about event sourcing and have a question regarding the recreation of an entity state. For a simple scenario, lets say we have Order events such as OrderCreated / OrderUpdated / ...
user avatar
-1 votes
1 answer
117 views

How to reference users in microservices

In the company I'm working in, we try to make our monolothic application evolve into a microservice architecture. The monolithic app has of course a user table, let's say it's called UserA, and it ...
user avatar
  • 1
0 votes
1 answer
42 views

How to load consistent test data into multiple applications (which communicate by message streams)?

I have a system landscape consisting of multiple applications. Each application provides REST interfaces to communicate with the outside world. Each application has its own data storage (some kind of ...
user avatar
-1 votes
1 answer
44 views

What is the best way of sorting a list based on the relevance from another service?

I have a product listing service, and it will give a list of products for the logged-in users, and the list is paginated, with ten products per page. I implemented this pagination using MySQL LIMIT ...
user avatar
1 vote
2 answers
128 views

How to develop using a microservices architecture knowing services should not share data?

I currently have a monolithic web application. Some API calls need a lot of processing resources and I would like to take that part out of my "backend" monolith and put it in its own service....
user avatar
  • 169
0 votes
1 answer
118 views

Architecture solution for scalable crawling

I have the following requirements: a list of queries (rather long list ~ 100K - 1M items or even more) that I need to perform in a certain period of time and the execution time must be predictable. ...
user avatar
1 vote
3 answers
121 views

In a microservice architecture without sharing a DB, how to spin up a worker to make changes in other microservices database?

Currently we have a MicroserviceA which has a database of objects that need to be hydrated with some KI calculated data. For this it queries MicroserviceB via REST in batches and inserts this into its ...
user avatar
  • 111
-1 votes
1 answer
78 views

API request and response from event consumer

How to expose an API using the traditonal request-response style while internally it handles it in event driven way (pure or partially event driven), given that if callback style may not be possible ...
user avatar
  • 109
0 votes
1 answer
82 views

Benefits of Microservices processes split per kind? of process?

At our job we are having a heated discussion with the DevOps team on how to architect and modularize our microservices. We come from a 2-coupled-monoliths approach, so we are trying to avoid common ...
user avatar
  • 11
0 votes
0 answers
93 views

microservice custom error messages

We use microservices and spring boot in our saas (multi tenant) projects. We will proceed through the schema per tenant. We manage the error messages we show to the users through a database. We are ...
user avatar
-1 votes
1 answer
56 views

Auth flow between two services

We have two applications, each of them separated with its own backend and frontend. The first application is the user-facing one. They register on the site and as soon as they want to execute a ...
user avatar
  • 11
2 votes
1 answer
201 views

Does it make sense to add an additional REST API to access a database?

I've recently joined a startup that has, in my opinion, a strange (and inefficient) way to access their database. Their implementation consists of multiple REST APIs that are exposed to multiple ...
user avatar
  • 33
0 votes
0 answers
42 views

How can microservice based applications use Service Mesh and Event Driven Architecture together?

I came across some applications where they claim they use Event Driven Architecture to communicate between microservices (Kafka as event broker) and also a Service Mesh (LinkerD) There are a couple of ...
user avatar
1 vote
2 answers
126 views

Is it a mistake to distribute shopper data across microservices rather than have its own microservice?

I'm studying DDD and trying to plan how we'll migrate from our monolith to a microservice architecture. At the moment I'm trying to work through two possibilities The first is where the shopper is an ...
user avatar
0 votes
1 answer
97 views

Consistency of data between microservices & monoliths

Let's say there is a user table and has field called coins to represent the coins available for that user in the system. At this stage a certain user has 50 coins in his account. Same user do the ...
user avatar
  • 109
-1 votes
1 answer
115 views

Would you put your Microservice doing ETL (Batch Processing)? [closed]

I am creating a Risk Microservice (Long lived application) which exposes some APIs. The Risk Microservice can CRUD, for example CalculateRiskScore which is an operation exposed via REST. As we have ...
user avatar
0 votes
0 answers
22 views

Synchronous communication with distributed architecture, but with business process management as orchestrator -- OK or not?

A team I'm working with plans to rebuild an existing suite of backend applications that are more-or-less monolithic into a distributed architecture with the intent of increasing maintainability. The ...
user avatar
12 votes
5 answers
5k views

What is the best practice about microservice architecture for consuming many stored procedures in the same database?

I have to build a micro service for my company, the backend is an Oracle database, but the micro service must consume five (5) stored procedures that already exist in the database (as shown in the ...
user avatar
0 votes
2 answers
75 views

Microservice decision about isolating services

I am currently working on redesigning a microservice application. Our application is supposed to serve multiple clients and due to compliance we have to persist the data in separate datastores. We ...
user avatar
  • 1
1 vote
2 answers
64 views

How to split out shared authorization logic across spring microservices

Currently working on a project where we have multiple services that all need to consume the same authorization service when their endpoints are hit. Right now we have the authorization boilerplate ...
user avatar
  • 135
1 vote
1 answer
53 views

Microservices for similar products

We are a mid sized moving and shipping company that is transitioning our custom applications to microservices. Our business was originally based on shipping, but we found some niche areas in moving/...
user avatar
-1 votes
1 answer
88 views

Microservice decomposition into reusable microservice from a set of monolithic applications

So for my Masterthesis i have to decompose a set of monolithic industrial applications into microservices. The aim is to decompose the monoliths in to services that are as much reusable as possible. I ...
user avatar
  • 1
0 votes
1 answer
54 views

Microservices: Non-query calls from an API Gateway in the API Composition fashion

In a microservice architecture, it is common for an API Gateway to perform API Composition (providing CQRS is not used) for queries to multiple services to combine data to make it ready for a front ...
user avatar
0 votes
1 answer
124 views

Can cache be shared among services via Redis/Hazelcast?

Can cache be shared among services via Redis/Hazelcast? I have a few microservices A, B, C etc. The Microservice C is mainly for helping other services. Service C periodically updates cache - so that ...
user avatar
-2 votes
2 answers
51 views

Microservice design to fetch different DBs according to parameter

I'm facing a scenario where I have a microservice that fetches possible filter values as the user is typing a query. Ex.: As the user type "city:", the possible values that could come is: ...
user avatar
0 votes
2 answers
54 views

Service changes for local development environment

I am developing a web app along with a backend API. The backend however must talk to other services, some of which are internal and others are not. In an ideal scenario we would spend time and have a ...
user avatar
  • 151
1 vote
1 answer
172 views

What is the common practice to serve a REST API based request asynchronously?

I am building a microservice app where the client sends requests through REST APIs to the backend server, and the backend will communicate with other services using gRPC. I am aware that this is ...
user avatar
0 votes
1 answer
114 views

Is it reasonable to pass file URLs to microservices instead of the file contents?

In microservices oriented architecture, service A receives a file and stores it. Later Service A has to pass the data in the file to Service B. We have a choice to send the data, as: batches of rows ...
user avatar
1 vote
1 answer
111 views

How to create an object requires multiple bounded contexts?

I will describe my problem with a very typical example, an e-commerce application. Says we have to manage Products, and we have 2 bounded contexts Sales, and Warehouse that store the product ...
user avatar
1 vote
1 answer
82 views

Storing large data shared between microservices running in containers at AWS

I'm dealing with an application that does the following: we have a microservice running on EKS called by jobs that pull XML data off an external system. The data volume can be fairly large (700MB-1GB ...
user avatar
  • 920
0 votes
0 answers
31 views

Creating entity with external dependency inside the aggregateroot?

Okay, so, I'm working on an AuthService for my microservices system. I'm putting plenty of logic around single instance of User inside of it itself, just so I can avoid repeating code, breaking SRP or ...
user avatar
  • 221
0 votes
1 answer
90 views

BFF/Gateway authorization pattern for other microservices

I'm starting a project using Azure as our serverless framework. The project consists of two separate frontends applications that must talk to some backend services, some will be made by me and others ...
user avatar
  • 103
0 votes
2 answers
74 views

Microservices inter-communication when response is needed

I have some REST API microservices (powered mainly with Java / Spring Boot) that communicate with other synchronously and I found out that is a bad practice since they are highly coupled. An example ...
user avatar
0 votes
1 answer
30 views

Is there a set of guidelines on how to handle/code execution of Spring Microservices RESTful API calls?

I'm building a RESTful web api using Spring Microservices. I am following the Controller/Service/Repository Structure. Where can I find some guidelines on what the responsibility of each class should ...
user avatar
  • 753
0 votes
1 answer
81 views

How should you structure the front-end/client to interact with a web app microservice?

I've been grappling with this for a while and figured I would post here to get input. I am a full stack engineer. I work on both front end and back end apps, where sometimes I have to create new ...
user avatar
  • 329
2 votes
3 answers
174 views

How to implement ownership of microservices while maintaining business agility?

I am struggling to reconcile some good recommendations, relating to the microservice architecture and Agile and DevOps, that are mutually exclusive in my mind. On one side we have the recommendation ...
user avatar
  • 428
0 votes
1 answer
63 views

Should Configurations Be Split To Different Microservices?

As part of a microservice-based system design, I'm struggling to decide where system configurations should reside in terms of domain ownership. For example, let's assume I'm designing a "store ...
user avatar
  • 153
-2 votes
1 answer
134 views

Securing http communication between backend services [closed]

What is a good way to secure http communication between two backend services which are not hosted on the same network? One way might be to have a shared secret in both services but I feel like that is ...
user avatar
  • 19

1
2 3 4 5
18