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
78 views

Using a hybrid watermarking/fingerprinting approach for identifying GPS geolocation data [closed]

Our backend is made up of thousands of micro-services. My team deals with and owns geolocation data for our entire backend ecosystem. We get different types of geolocation data from customers: GPS, ...
user avatar
2 votes
0 answers
57 views

How to define the data model in an event-based infrastructure

After my team went all-out on the microservice paradigm with an emphasis on message passing, I'm having trouble defining and keeping track of all the events in the system. I've read some guides on the ...
user avatar
  • 29
1 vote
0 answers
62 views
+100

Granularity of API Gateways to Service Balancers

OSS API Gateways typically come bundled with built-in load-balancing capabilities. We see this with Netflix Zuul and Kong. In a service-oriented architecture, where many microservices are talking to ...
user avatar
4 votes
1 answer
84 views

Service discovery and load balancers with high-frequency health checks

I am trying to understand the advantages of service discovery compared to load-balancing within the context of a microservice mesh where many instances/nodes/VMs/containers of many web services are ...
user avatar
0 votes
1 answer
40 views

DDD: Service role vs Repository

Context I'm giving a try at my first backend API which aim to follow some Domain Driven Architecture concepts that I've learned from an implementation in Go in a Udemy course. The problem is that I ...
user avatar
0 votes
1 answer
129 views

How to share state between microservices

Consider a microservice architecture composed of a number of asynchronously communicating workers. Each worker deals with an isolated task and may have its own specialized database. Now consider that ...
user avatar
2 votes
2 answers
63 views

Saving REST API IDs into a different microservice

I'm not sure how to best ask this, as it's the first time I have to tackle such stuff. It might be that it's a common problem and I'm just using the wrong keywords to search. Basically, imagine a ...
user avatar
  • 121
0 votes
0 answers
23 views

Microservice Architecture - Calculating API Request Count and Duration

I am in a microservices ecosystem and I want to calculate the API requests count and the duration time for different APIs offered by multiple microservices. It is a multi-tenant system and I want to ...
user avatar
  • 101
0 votes
0 answers
37 views

Should Infrastructural Services Listen to Domain Events

I'm building an infrastructural service with my team. We are building a service that will help other teams in our org send out a notifications to end users when certain events occur. We are currently ...
user avatar
  • 165
0 votes
1 answer
63 views

Tight coupling between micro services

I have got the following scenario, which I have been thinking what would be the "best" way to solve it. Request comes from the FE, which changes the status of a delivery, and that should ...
user avatar
2 votes
3 answers
1k views

One db per microservice, on the same storage engine?

It is considered the best approach that a microservice db is private to it and shared nothing approach is the best. I recently came across a cloud based system which used postgres, mongodb & ...
user avatar
2 votes
1 answer
61 views

Foreign key check without data duplication in separate microservices

If for example we have a user, project and a task service where a task is assigned to a single user and user can be part of multiple projects - how can one enforce a rule so that one cannot assign a ...
user avatar
-1 votes
1 answer
47 views

Any pattern for delaying processing of a (JMS) message until another task completes

Is there a good pattern in microservices systems for delaying the processing of a JMS message until some other task has been completed. Let's say, for example, a message is sent to a topic when a ...
user avatar
  • 179
0 votes
2 answers
131 views

What is the computational overhead when running a relational database in several docker services instead of a single instance?

I want to move my current relational database installation into a docker container or a set of a docker containers. I have a web server with an associated relational database. I provide a set of 40 ...
user avatar
  • 222
0 votes
1 answer
62 views

Single Gateway for multiple gRPC Services

Currently I have a monolithic gRPC server that implements several service stubs that are utilized by a large amount of internal client programs (none of this is public internet facing). As our ...
user avatar
2 votes
1 answer
160 views

User (Actor) data shared across Domains / Microservices

I have read through a number of posts on Software Engineering but am unable to find a suitable solution for the problem my team and I are trying to solve. We are building a system where we have ...
user avatar
  • 73
-2 votes
1 answer
62 views

Microservices and bounded context - how to handle popular service in the system? [closed]

I'm writing a new microservice app. event driven app. The app handles crypto currency wallets. There is a service: "Coin Service", this one holds data that every other service need access to....
user avatar
  • 185
0 votes
2 answers
172 views

Are microservices unfit for our domain logic

I work in a software company with a single product, a 25 year old monolith application (1.2m lines of code) handling all HR related data (employments, salary, collective agreements etc.). I've been ...
user avatar
-2 votes
1 answer
37 views

PDF service: using a REST API in front of queue vs publishing director to queue

We're building a PDF service for internal use, to permit common operations like HTML to PDF, merging PDFs, extracting pages, convert to/from other formats, etc. We intend to use a queueing mechanism ...
user avatar
  • 946
0 votes
1 answer
58 views

Prevent missing updates using a message broker after creating a task

I'm trying to design a data updates mechanism in my micro-services architecture. For the sake of simplicity, let's assume we have two micro-services A and B, B exposes an API for creating some tasks, ...
user avatar
  • 109
1 vote
1 answer
239 views

Naming Conventions for microservices

We are currently splitting up our Intranet monolith into multiple (Micro)services. The layout in itself is already finished and we have decided to split them up in a way that there is only ever one ...
user avatar
  • 229
0 votes
1 answer
92 views

What are the best practices in public API vs internal only API being on the same service

I wanted to understand what are the best industry practices and the pros-cons in the following 2 choices: A single service that serves internal only API and public API, vs 2 separate services - one ...
user avatar
  • 101
0 votes
2 answers
123 views

Microservices that needs to change row in shared DB

I have an application that can be reduced/simplify to this flow: user sends request to app A app A inserts info about the request and user into DB ( marked as "B in progress" and "C in ...
user avatar
  • 231
0 votes
0 answers
60 views

Querying data from multiple microservices

I'm trying to design an application that uses the microservices architecture. The service would have an api gateway, a user service and then a seperate service for each analytic source. For example, ...
user avatar
  • 101
0 votes
1 answer
76 views

A service having to have both an API and listen to events - Is this an anti-pattern for microservices?

I have a use case to create a service that consume messages from a message queue, process them, store them in the DB, and expose the processed results via an API. Therefore, the service I'm going to ...
user avatar
  • 109
0 votes
1 answer
70 views

Are Microservices Architecture and a Single Customer View able to co-exist?

Given the microservices pattern is the decomposition of software by business capability with ownership of state, and a single customer view is an aggregated, central, "single" data store of ...
user avatar
  • 109
-3 votes
2 answers
153 views

Which HTTP status to return if a downstream service I depend on returned 500 error

My service B is part of a chain of services and calls a downstream service C. A --> B --> C Service C is returning HTTP 500 errors for any error it faced, including bad requests or input ...
user avatar
  • 261
-3 votes
1 answer
86 views

Using two different languages where one would suffice for the task (microservices)

I previously asked this on StackOverflow, but doesn't fit there and I was suggested to move it here. I was thinking about using two seperate backend languages for seperating concerns in a project of ...
user avatar
  • 97
-1 votes
1 answer
67 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
2 answers
74 views

best practice to recover or handle requests 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
26 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,021
0 votes
1 answer
158 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
56 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
36 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
83 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
226 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
202 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
47 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
0 votes
2 answers
73 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
131 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
44 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
48 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
136 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
119 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
217 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
  • 113
-1 votes
1 answer
86 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
85 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
98 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
59 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
258 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

1
2 3 4 5
19