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
0answers
17 views

Gateway aggregation is only for microservices?

I started to work in an existing Angular app that consumes a monolithic Web API writen with .NET CORE. This API has dozens of controllers(routes). In one of the main screens, when one specific event ...
1
vote
1answer
37 views

Flask restful file upload asynchronously?

I am working on converting an existing python based monolith solution to a microservice. The current flow is pretty straight forward: Accept XLSX as input -> Run some complex algorithms based on ...
1
vote
2answers
115 views

how to build microservices that also have GUIs

In a microservices architecture where each component does one thing, how do you handle GUI logic? How do you avoid building a front end web application that has a lot of smarts built into it where it ...
0
votes
1answer
67 views

Design decision of reading XLSX file at once or intermittently

I am working on converting an existing python based monolith solution to a microservice. The current flow is pretty straight forward: Accept XLSX as input -> Run some complex algorithms based on ...
-3
votes
0answers
25 views

How to implement a saga execution coordinator in node.js for orchestration based saga of microservices? [closed]

All of my services are written in nodejs. I want to create a saga execution coordinator (SEC) for my services, which I want to be in nodejs also. I have no idea how do I implement this. I'd like to ...
1
vote
1answer
87 views

If I use the same database (Redis container) for all microservices, will that be an acceptable design without deviating from microservice principles?

I am working on converting a milestone project into microservices. All these services are in seperate docker containers. I am using event-driven pattern where I have used RabbitMQ as the message ...
-1
votes
2answers
68 views

Can a service be split into two microservices using common libraries?

I am thinking of splitting a service serving multiple endpoints into microservices that can serve a set of endpoints but the problem is that the two services have certain logic in common. can the two ...
-2
votes
1answer
67 views

How microservices db are updated and sync when scale? [closed]

Scenario: In Case I have MS "MS-1" Orchestration detect high volume Orchestration create additional node with cloned MS "MS-2" "MS-2" get request and update its DB Question : How MS "MS-1" will ...
3
votes
4answers
247 views

Should we share a database between two 'Microservices'?

We're implementing a service that exposes data related to a particular part of a business. It will pull data in from different sources, do some ETL, and store it in Redis. It will expose this data ...
2
votes
4answers
189 views

Is it better for a microservice to access database tables individually or to work with joined data?

In my limited understanding of microservices they seem to focus on quite limited pools of information, leaving it up to the application to bring all the data together in ways which were perhaps not ...
1
vote
2answers
112 views

Data from one microservice to another

How does one service get the data from another service? I will give few examples: 1) Let's say we have two services which need to share the data: User Service and Order Service. Order Service pretty ...
-2
votes
1answer
30 views

building a frontend for a microservice backend: architectures? (spring boot stack)

to summarize a bit my current situation: I am building a backend based on microservices using spring boot. These are aggregated behind an api-gateway. My intention is to consume these api's from both ...
1
vote
1answer
32 views

Scheduled AWS Lambda to Update Database via API Call

I'm planning on the following for a use case scenario for AWS Lambda and want to make sure I'm headed in the right direction and that there's not some better/easier solution out there. The database ...
0
votes
0answers
25 views

Microservices: Changing DB Usernames at Runtime and Carrying Session Settings Across Other Services

Currently, our database is a shared database separate schema. Under the current architecture, all users start at the entry schema, which we called as APP, before the identity of the user (upon ...
5
votes
3answers
366 views

Microservices - What does it mean to deploy & upgrade independently?

In this article, it is mentioned (emphasis mine): ...the microservice architectural style is an approach to developing a single application as a suite of small services, each running in its own ...
-3
votes
0answers
38 views

best way to get history for a MicroService

I'll shortly describe a part of a system that is monitoring and detecting a specific change. mon-service : actively poll value from the source and publish changes log-service : listen to changes and ...
0
votes
1answer
81 views

Authentication and Signup with Microservices

I am looking for the best practice to do authentication (login) and signup using microservices, given that microservices are not supposed to share the same data. At the moment I am thinking: Two ...
0
votes
1answer
26 views

Dynamic Configuration vs. Custom Service

I have been designing an email alert system for my customers which allows them to choose what alerts they receive. AlertManager seems suitable, except for it's static configuration file; A customer ...
1
vote
1answer
45 views

Sharing data between services in events based architecture

We currently have a monolithic application. Currently an API end-point will look something like: public async Task<IActionResult> Post([FromBody]ContactViewModel model) { //... update the ...
0
votes
2answers
94 views

Microservices architecture: Divide micro services by user roles alone

I have encountered the following design requirement in an app marketplace like project from a client in which users can rate games/apps they download (only in a special way more helpful than ...
1
vote
2answers
42 views

Aggregating data between microservices in twitter-like application

I'm developing a Twitter-like app and I have some doubts about my service oriented architecture. I have a User Service with a REST endpoint POST /users/{userId}/follow so the "connected" user starts ...
0
votes
1answer
101 views

How to identify rules satisfying a certain condition based on events

I am working on a microservice, in an event driven world, where I have tens of 1000s of rules configured which depend on data type A, B, C, D and so on. As soon as an event arrives I want to be able ...
1
vote
1answer
72 views

How could I programmatically generate a chart of interservice messaging flows before runtime?

My team is currently developing an application using a microservice architecture with publish/subscribe interservice communication over a message bus. Certain types of HTTP requests and messages ...
1
vote
1answer
63 views

Background job in microservices

I have a basic java Dropwizard service within cluster of microservices. It manages user resources with restful api styles. Let's call it user-app Then there is a new operation / api endpoint that ...
0
votes
0answers
48 views

What is the best practice when it comes to naming microservice endpoints?

With a monolith we have one huge api project for which we used plural nouns to represent each entity. For example http://monolith.domain.com/Payments, http://monolith.domain.com/Customers, http://...
0
votes
1answer
41 views

Is event-sourcing and event-driven design works in scalable architecture for a wallet?

considering you need to design a simple wallet service that keep tracks of transactions, and give balance for each account. I started designing the solution using event-driven architecture, so every ...
1
vote
1answer
132 views

How to develop independent logical blocks without having too many microservices?

I have a service which is composed of various independent small "blocks" of logical code. A block stands for a class which implements an interface "IBlock" which includes an "Execute" function that ...
1
vote
1answer
21 views

Event Carried State Transfer and initial state synchronization

I'm exploring Event Carried State Transfer patter, I understand how it works, but there is one problem I don't know how to solve. So, in ECST, a service can listen to events and then build a private ...
2
votes
1answer
61 views

Should I use Repositories or wrap that logic in an additional service layer in my Controllers

I am building a Loopback4 app just for learning; I have a scenario where I have to check for a couple of things before sending that request to the database, so my entry point is my Controllers Method, ...
0
votes
2answers
33 views

Normalising pagination regardless of the target source

I have a service that fetches data from a target source (not through an API but via scraping) which can change. I want to do pagination so that I return 35 items per page but the target source is 25 ...
0
votes
0answers
23 views

Error code handling between Oracle Database and Microservice API

I'm using Oracle Database and .Net Core API for my project. What is the best way / best practice of handling errors between Database and API? What I'm thinking is, I'll return only custom error ...
0
votes
4answers
158 views

Design Idea to Overcome Slow DB (a black box) Access

Suppose we have a DB with a table holding Person: id first name last name age The DB is a black box. And there are a lot of get and post requests for these records. We cannot change the DB but ...
0
votes
2answers
93 views

How to send queue messages to one queue in rabbitmq?

I want to use rabbitmq to share domains events between microservices. Due to the fact that queues are round-robin, I need to define one queue per event source and event consumer. For example, cars-ms ...
0
votes
1answer
71 views

Should microservices manage their own media file logics?

I've heard that when you designing a microservice, the service should includes everything it needs to make them loose coupling instead of calling each other (services). Based on this idea, should ...
2
votes
1answer
165 views

At what point does a microservices architecture become “worth it” vs. a monolithic ASP.NET web application?

I'm the maintainer of an ASP.NET WebForms application and am contemplating a refresh of the application in order to eliminate dependency on some legacy libraries, add some features, fix some areas ...
1
vote
2answers
73 views

Looking for clarification on pub/sub systems and how an API gateway comes into play

I'm new to micro service architecture and I'm looking to understand how services should/can interact with each other. The acceptance for my current story requires me to: Email a document Backup the ...
4
votes
3answers
258 views

Does each microservice need its own server running (Tomcat, docker container)

In development I have a Java backend API which I'm running with Tomcat. I'm wanting to wrap the backend in a docker container and deploy to an AWS EC2 instance, and be able to scale up/down. Does ...
0
votes
2answers
70 views

Possible microservice based design

Here are the design considerations for a software. The querying of data should be as fast as possible (reader <1s, writer <2.5s possibly since it also take time to reach the client end web or ...
-2
votes
1answer
75 views

Why should an authentication server and a gateway be two distinct components?

Why should I decouple an authentication server from a gateway in a micro services architecture ? A clear drawback is the additional network load needed to query the auth server in each request. ...
0
votes
0answers
21 views

Common ordering patterns for several instances of a microservice and one DB in eventual consistency [duplicate]

i was wondering - when we're talking about microservices communication, one common pattern is "eventual consistency": https://docs.microsoft.com/en-us/dotnet/architecture/microservices/architect-...
1
vote
2answers
149 views

Direct Service Calls vs API Gateway For Microservice Communication

I've such microservice architecture as below. I want execution service to get some information from storage and assignment services. I want to use MVC App like an API Gateway and handle all ...
1
vote
1answer
53 views

Do I need multiple exception classes for a Micro Service

I am developing a Micro Service which is going to be called/used internally. I'm trying to improve error handling, but got confused with two below approaches. Having multiple exception classes for ...
0
votes
2answers
87 views

Http Status Code When Downstream Validation Fails

I have an API that charges for an order. It accepts the orderId and the amount as inputs. Then it makes a '/charge' call to the downstream, which returns a 202. Immediately after this call, it calls a ...
3
votes
3answers
148 views

Multiple Databases per Microservice

We have a scenario in which all the important and transactional fields of our business entities are highly structured and relational. The data size of these important fields is also very small. ...
-1
votes
1answer
211 views

How do sites like LeetCode & HackerRank test your code for correctness?

Not sure if this question belongs here, but I've always wondered how exactly sites like Leetcode & HackerRank test your code. Say you code in Java for a question like, Find all the duplicates in ...
0
votes
1answer
139 views

Saga vs. Unit of work

What's the relationship between the two? Both are for atomic operations. Both results need to be either success, or failure with rollback to original state.
1
vote
1answer
101 views

Multitenancy - Tenant provider in microservices architecture

We are now in a process of migrating our server-per-client architecture to a multi-tenancy architecture. Everything is in place except for one design issue we are having. We are using a subdomain in ...
1
vote
2answers
99 views

How should I design an architecture for an endpoint to take in huge amount of data without loading the database?

Every day, there will be a set of new data that I will need to write and update to the database. This set of data can contain 8-10million records. This new set of data comes from Service A and it ...
2
votes
3answers
273 views

Is there an architecture pattern for “microservice as a plugin”?

Long story short - I would like to make a web application, solely for self-education purposes, that should allow user to add additional functionalities via plugins - just like Jenkins - https://...
1
vote
1answer
54 views

Same Event types for multiple micro-services

In an Event Driven Architecture when there are more than one microservices say A, B that publish same Event say Order_Created and a service C listening to it, performs some actions and publishes an ...