Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
Join us in building a kind, collaborative learning community via our updated Code of Conduct.

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.

1
vote
0answers
27 views

Microservices loose coupling using distributed business logic or centralized?

How do we achieve loose coupling in the below scenario: N microservices (let's call them Callers) needs a logic or business( let's call it Worker) to be executed with different contracts. Although ...
0
votes
1answer
90 views

Microservice to access databases [on hold]

Our company is designing a new ERP based on microservices. The reason we want to implement microservices is because we noticed that some critical parts of the old ERP are being heavily used by our ...
-2
votes
0answers
58 views

RESTful API. Designing response output [on hold]

I have a GET API which I'm designing with minimal business logic around the data being fetched from the database. Is it okay to wrap the multiple DTOs being fetched from the database into a single ...
0
votes
1answer
31 views

Which scenario is the best for service worker architecture?

We know about using service workers in modern web sites. Consider a scenario back-end as node.js and SQL Server. Data is loaded from central database to local customer web app (DB is about 700 MB) ...
-2
votes
0answers
27 views

Bulk API's handled differently than Manual Single API (DDD , Microservices)

We are building a Sales CRM type of Application where we want to provide bulk Upload API. I am using Lagom, there i cannot update multiple Aggregate in one transaction, how should i do it. I have ...
1
vote
1answer
78 views

Microservices data - eventual consistency - initial state?

Let's say you have two microservices (contrived example): Customers service Dashboard service In the customers service, you manage all aspects related to customers (address, preferences, whatever). ...
1
vote
0answers
91 views

How to maintain table relationship across services in with a micro-service architecture

I have a scraper service that looks for media online. For every source type, there are two tables. A common source table and a source_type_media table that are related by source.id to ...
1
vote
1answer
57 views

Logging Architecture Solution

Let me start by setting up the context briefly. In our organization (a Big Data company), there are many different systems, including Web sites, workers (system listening to queues and/or topics), ...
8
votes
1answer
196 views

Do Microservices behind an API Gateway need to verify the Access Token?

I have a bunch of microservices that are only accessible externally via an API Gateway. My API Gateway is set up as an OAuth Resource and validates the token (Checks signature etc.) before passing ...
0
votes
1answer
51 views

Message Broker vs. iPaaS

Does anyone have suggestions/recommendations/guidance they can offer on when to use a message broker like RabbitMQ/Kafka vs. an iPaaS solution like Mulesoft/Jitterbit/Dell Boomi/Workato? Can they ...
1
vote
1answer
69 views

Event Driven Microservice Architecture & Dealing with synchronous external neighboring systems

Let’s say I have an event driven microservice system - a microservice cluster - that takes orders and works with them. Orders are placed by an external neighbor system that is working synchronously ...
0
votes
0answers
19 views

How microservices and EIP relates

I've been working some time in microservices architectures and have created multiple micro services using Spring Boot framework, let's say UserService, AccountService, BillingService, ...
1
vote
2answers
49 views

Microservice boundaries definition and dependencies handling

I'm reading a lot about microservices but one thing remains a bit unclear to me. Let's say in my organization, I have 2 abilities: Extract street names from one or more blocks of text Given a ...
-1
votes
0answers
38 views

Server architecture for both cloud and enterprise

I'm looking for pointers in the architectural design of an application's backend components in a way that will be both Cloud and Enterprise ready. After some research and discussion, we've come to ...
0
votes
1answer
14 views

Validate Entity Key from another microservice comming from UI

Let's say an Orders service knows only about the CustomerId from Customer service. When the user places an order, the CustomerId gets transferred from the composite UI along with the OredrDto. The ...
-1
votes
1answer
96 views

API gateway for web-fronted applications, is it worth it?

So am in the process of developing a new application and am welling to adopt a micro-services based architecture (am new to that). The problem is that the application will be exposed to the final ...
0
votes
1answer
73 views

Microservices - sharing data through distributed in-memory cache?

I'm fairly new to both microservices and shared in-memory databases like Redis. I'm wondering though if it would be a good idea to combine the two to address the challenges of data duplication, ...
0
votes
0answers
46 views

Developing and debugging microservices locally

The use case: I am working on a microservice based architecture and I am wondering how I am supposed to debug a microservice (with my IDE attached to it) on my local machine where I develop it. The ...
0
votes
1answer
53 views

Should I Microkernel or Microservice my legacy ERP?

I have been working on an n-tier monolith application for a couple of years, and want to build a plan to transform this big ball of mud to a more maintainable system. I came across Software ...
3
votes
2answers
216 views

Is there a service for efficiently solving redundant software problems

For example, creating user accounts are a pretty common occurrence when developing a website. Is there any service that a software developer could use to "click and drag" a solution for this into ...
1
vote
1answer
25 views

Determining tenant for anonymous multi tenant api endpoint

I'm in the process of building a new api that needs to support multi tenancy. I can figure out how to implement reading and writing the data securly without having to worry about clients being able ...
0
votes
4answers
202 views

Microservice communication

I'm quite new to microservices and I'm studying what is the best approach when it comes to microservice inter communication and fallback scenarios. For example: if service A is calling service B to ...
0
votes
2answers
120 views

How to limit the amount of requests by minute to a external system on a micro services environment?

I'm having some problems to think on a solution to control the amount of requests by minute to a external system on a micro services environment on Kubernetes. The scenario This external system is ...
1
vote
3answers
259 views

What is the proper way to synchronize data across microservices?

I am relatively new to microservice architecture. We have a moderately sized web application and I am weighing the pros and cons of breaking it out into microservices instead of a monolithic system we ...
2
votes
3answers
88 views

How to deal with user interaction in event based microservices

First of all, it is hard for me to explain problems in a clear way, i tried to make it as clear as i can but if you need more information, please ask and i will try to explain as best as i can I'm ...
1
vote
2answers
54 views

Microservice Architecture: Localizing core logic in a separate code base

I stepped away from a project for a few weeks. Before leaving the organization was discussing an architectural pattern for our microservices. An instance typically serves two roles in our organization....
0
votes
2answers
104 views

Is it valid to split an API in different microservices?

Taking the following scenario. A blog where anyone can see publications and comments and users with enough privileges who create, update or delete this publications or comments. Publication list ...
1
vote
1answer
61 views

User identity and microservices

I have created a User service that controls user login using OAuth2 protocol and stores the user in the local database. So this service is aware of the user session and user identity. Now I have ...
1
vote
1answer
41 views

How to identify solely or grouped services for a microservice

Here is an example I asked myself to better understand microservices, but the thing is, I am confused on how to identify them in this particular case. There are cinemas in each country, those ...
1
vote
1answer
39 views

Should I do parallel processing in RPC web service?

Recently I was reviewing my team leader pull request in our Web API hosted by Kestrel. There was a place in our code which is sort of hot path and we are processing frequently over hundred of items ...
1
vote
1answer
37 views

How should I move auditing data periodically to another microservice?

I have been reading a lot about microservices and have been trying to logically split my system design up accordingly. For the most part, my system will have a central database whereby I will have ...
1
vote
2answers
122 views

How to split a monorepo accross multiple teams each has access to only a slice of repo?

There is a lot of good advantages in monorepo, we also read that large companies like google and facebook use this tech to keep all source code in single repo. But question is how do you manage to ...
1
vote
0answers
31 views

OpenID Connect - UserInfo endpoint Redundant?

Why would we use the userinfo endpoint in OpenID Connect to get information about the user when we can simply include that information in the access token? The UserInfo Endpoint is an OAuth 2.0 ...
0
votes
0answers
32 views

Separating user information from Identity Service

I'm looking at using Azure B2C as an identity service for my microservice architecture. This service allows me to add custom claims to include in the id token and the access token such as given name, ...
3
votes
1answer
79 views

How do open source libraries like Apache Commons fit into the microservices architecture?

I'm reading about microservices, and one point I come across repeatedly, is, in order to achieve full indepencency, it's a bad idea to share libraries among microservices. Examples are here and here. ...
0
votes
2answers
230 views

Email service in microservice architecture

Who should handle sending emails in microservice architecture if as a email sending using APIs like Sendgrid, Mandrill and etc? each microservice should send on their own, because it is just HTTP API ...
1
vote
1answer
101 views

Dealing with permissions for the list of resource

I have a few big services, that uses the same database and tables for managing roles and permissions. Each service ask the database directly for the permissions. Now I need to build a new service. ...
31
votes
6answers
5k views

In microservice, is it single database or single database instance for each service?

I understand that a each service in a microservice architecture should have its own database. However, by having its own database, does it actually mean simply having another database within the same ...
0
votes
2answers
103 views

Recurring notifications in a microservice architecture

My problem concerns two services: NotificationService(should be used by more than just the SurveyService), SurveyService. I want to send recurring notifications to the user asking for participation ...
6
votes
2answers
405 views

Zero argument constructors and Always Valid entities

I have done a lot of reading recently about Always Valid domain entities. I have come to believe that in order to ensure the entities are always valid I need to: 1) Remove primitive obsession and ...
2
votes
1answer
80 views

Mircroservices - Ordering of Integration Events

I'm currently learning about event driven architecture and have the following 2 microservices. Product Service - Responsible for managing products Ordering Service - Responsible for processing orders ...
2
votes
1answer
126 views

CQRS and microservices: passing information from one service to another

We're building two microservices that use CQRS and Event Sourcing: an Order Service and an Inventory Service. When an order is made, the inventory of that item must be decreased by the amount ordered. ...
1
vote
1answer
116 views

Do I need to secure communications between microservices in a cluster?

So, let's say I have a standard set up for application, that is: - split into micro services - and is running in a cluster (kubernetes or docker swarm, I guess specific implementation does not matter, ...
0
votes
1answer
37 views

Is there a place for connection string in SOA's desktop clients?

In the SOA architecture, with many services that implements data persistence as well as basic logic - is there even a place for connection strings in client Desktop applications? Or should everything ...
0
votes
0answers
372 views

Separation of authentication/authorization in microservice architecture

So I'm currently trying to design a microservice architecture for a side project. I chose the microservice architecture primarily because it's just my own side project, so I want to learn something ...
0
votes
0answers
75 views

How to pass images between microservices in an image processing pipeline?

I was wondering what would be the best way to push images forward from one step of an image processing pipeline to the next. For example, say I have 3 microservices: input image -> preprocessing -...
3
votes
2answers
96 views

Deal with enumeration in Microservices architecture

I recently faced a problem when I designed the microservices architecture of our new system. To give more context on that, let's suppose that we have two different services. A service is ...
5
votes
2answers
235 views

How to deal with file events with microservice that exposes a REST API

A bit of context. The company where I work is starting to transition to a modular architecture (something similar to microservices) for our main product, currently monolithic. The first step is to ...
-1
votes
1answer
206 views

How to split an onion-style DDD project without using microservices?

Background: I'm building a prototype scientific app with the "Exploration" and "Optimisation" parts. (Other parts might be needed later.) Each part uses functional reactive programming (FRP) and has ...
1
vote
0answers
55 views

Is this a good solution for Card holder applications?

Business case I am currently looking for a better architecture to replace the current implementation for my application. Currently, My application runs on a mainframe system with CICS used for ...