Stack Exchange Network

Stack Exchange network consists of 175 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

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.

3
votes
1answer
112 views

Handle localization in microservices architecture

I'm developing a multi culture application with different microservices, The microservices communicate with each others with integrations event, so when a new record is inserted the owner of the data ...
2
votes
1answer
335 views

CQRS, microservices and delta replication

We have a micro-service that has a Domain Model and have an analytical service for the domain which has its own Query Model. The domain model and the query model are stored in separate persistencies. ...
1
vote
1answer
46 views

Spring Boot REST Java Microservice: Why Use Maven Submodules?

I have seen a project which uses Maven submodules. The project itself is a spring boot application that exposes Restful API endpoints for a microservice ex: Customer Service (getCustomers, ...
4
votes
0answers
320 views

Can Event Sourcing and an API Management platform leverage each other?

I'm evaluating the use of Kafka to implement Event Sourcing in a microservices environment that already makes use of an API Management platform. I was wondering if it is common and/or considered a ...
3
votes
0answers
364 views

Microservices and Modular based front end

I'm a software developer, and the kind of developer we call "front end developer". I'm working on stuff like Angular JS, Angular 2 and others. I wanted to know how we can organize our front end code ...
3
votes
0answers
119 views

Sharing identical events, with differing scopes, between client and server libraries, in a micro-service architecture

I have a shared user repository (id, name, e-mail, password, etc.) exposed as a REST service - and multiple independent websites accessing this REST service (from the back-end) as a means of sharing a ...
2
votes
0answers
87 views

UI syncing in case of bulk operation api

In a CQRS system, the convention that we follow is we render the detail view of an aggregate(i.e getById) using the write model and views containing multiple aggregates(like a dashboard) using read ...
2
votes
0answers
79 views

How to design a sync api exposed to third party which involves a business transaction across aggregates?

Business Domain In the Sales domain, I have 3 entities - Lead, Contact and Opportunity. A lead is injected into the system from many sources and nurtured. If it is a prospect then it is converted ...
2
votes
0answers
50 views

I need a web frontend for managing some data. Should I add it to an existing microservice or create a new one?

I work in a company that uses microservices. We have one particular service (let's call it Cart Service for example purposes) that manages some logic (storing carts, allowing other services to add and ...
2
votes
0answers
324 views

Distributed transactions and recovery with stateless microservices

I suppose I have the following use case: I want a synchronous service if possible (in case of machine crash I want to finish it in background, by some other node) I want to save something in my ...
2
votes
0answers
249 views

When designing an activity-based authorization system, how should additional conditional checks be handled?

When designing an activity-based authorization system, how should additional conditional checks be handled? For example, I have the following authority: VIEW_COMPANY_TRANSACTIONS which allows the ...
2
votes
0answers
298 views

Designing large nanoservice architecture with AWS Lambdas

I'm moving from a coupled architecture to a decoupled architecture using microservices with AWS Lambda. Here is my current architecture: Each API Gateway route is linked to a specific Lambda, each ...
2
votes
0answers
126 views

How do I take data offline for a specific tenant, if their data is spread across multiple databases and multiple microservices?

I'm working on an application with about 50 or so microservices that have separate multi-tenanted databases. The problem arose of taking a tenant's data offline meaning that any requests for a certain ...
2
votes
0answers
576 views

How to design microservices without leader election but job scheduling?

There is a microservices system that is currently using Zookeeper. Let's assume there is just one type of service A that exhibits a simple read of some value t. However, the one of existing A ...
1
vote
0answers
31 views

How to authenticate third-party callbacks that don't support authentication

I'm working on a project that integrates with a third-party service via API, and the third-party uses callbacks to update us on the status of the operations being performed. These callbacks can be hit ...
1
vote
0answers
40 views

Blue-Green Deployment: how to synchronize and maintain data consistency after migration?

To provide zero downtime upgrades of my highload service I use blue green deployment strategy. Every moment data changing happens, so how to migrate all data consistently? In the moment I switch ...
1
vote
0answers
45 views

Better approach of testing groups of small services with or without dependency injection

Let's assume, that frameworks I use, provide some kind of dependency injection automatically available in testing environment. Let's also assume, that I have a lot of micro services in my application....
1
vote
0answers
71 views

Is my microservices architecture in line with best practises? (STS/SPA/Frontend API/Backend services)

My goal is to make an application with a SPA front end that updates in real time, incorporating microservices architecture (and for solutions CQRS design patterns and eventing with Azure Service Bus). ...
1
vote
0answers
102 views

What are the design patterns and supporting technologies for sharing complex objects between microservices?

Question: Given that two services operate on a common complex object, what are possible design patterns and supporting technologies of exchanging the object and (possibly) sharing the implementation? ...
1
vote
0answers
297 views

Authorization, permissions, and scoping resources in a microservice/DDD architecture

I'm building a microservice-based application (services according to DDD) and am about to implement authorization service. There are API gateways and UI applications that access backend servers, and ...
1
vote
0answers
42 views

Dynamically start containers to isolate code compilation / running

I'm building a system where I need to measure certain algorithms, which are written by the end users. Obviously running external code is a huge security risk, therefore it needs to be isolated. The ...
1
vote
0answers
33 views

How should propagation of service abuse information work within a microservice architecture?

At the moment, I'm working on a product that's being broken down from a monolith to a bunch of microservices, and it seems to be going well enough. However, if a user is abusing the service somehow, ...
1
vote
0answers
145 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
0answers
94 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 ...
1
vote
0answers
58 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 ...
1
vote
0answers
400 views

Create account flow in microservices architecture with different services for account and auth

I'm developing an application based on microservices architecture. Currently my goal is to implement 'Create user' flow. But I'm not sure quite sure what is the right way to do it. My problem is as ...
1
vote
0answers
305 views

In which ways, Netflix conductor is different from a BPEL engine?

Netflix conductor allows you to implement complex business and process flows using a JSON DSL. I do understand the scheduled nature of Conductor, still, in what way, it is different from having a BPEL ...
1
vote
0answers
101 views

Integration tests in different environments

Our microservices are going to be deployed on AWS, using Pipelines. A step on this pipeline will execute integration tests using a dedicated database on AWS, a MySQL instance. My question is: since I ...
1
vote
0answers
294 views

Will use service layer directly from controller or use command, command handler approach to process the request from asp.net web API?

I am going to build a simple asp.net web api application which will send request to 3rd party service and then return back the response to client. Before sending request to external service, I need ...
1
vote
0answers
192 views

Load balancing outgoing connections in Azure Service Fabric

I'm currently developing an app using the Azure Service Fabric. My question comes in regards to balancing outgoing connections. One of my services is going to be making a large number of outgoing ...
1
vote
0answers
244 views

Migrating from monolith to microservices reusing data layer

We are basically in process of moving from monolith system to microservices and we avoided migrating monolith system all at once, or as they call it a "big bang" https://www.nginx.com/blog/...
1
vote
0answers
150 views

Communication direction between microservices

Let's say I have 2 micro-services. One is identity and another is support. I understand when user is created inside identity ms, event will be published and support micro-service will subscribe to ...
0
votes
0answers
19 views

How are changes populated to FrontEnd in Microservices Event First scenario?

I've been reading recently about Event First approach to microservices where Event Store is a Single Source of Truth for all the applications (https://dzone.com/articles/data-consistency-in-...
0
votes
0answers
23 views

ACL entity and microservices database relations

I would like to build a microservices architecture to handle the following scenario: I have a building. The building has some kinds of devices. And the devices can be used by the users. In the system, ...
0
votes
0answers
12 views

How to manage microservice workflows with Apache Kafka

Currently, we have REST-based services and we would like to make an architectural shift to decoupled microservices with Kafka. However, there are a couple of issues not clear to me. 1- How can we ...
0
votes
0answers
42 views

Asynchronous Micro-Service Authorization

I have the following setup for my application: A User logs in and is granted a Session Token. When making API requests to Service A the User provides the Session Token. All requests go through an API ...
0
votes
0answers
43 views

Data integrity across multiple services

I am trying to explore the patterns around data integrity when applying multiple services with access to the same storage. Let's say I have Service1, which runs in 3 instances. Whenever an instance ...
0
votes
0answers
49 views

Using signalR for streaming alongside a microservice architecture

I have a cluster of micro services with an exposed search API serving a client app. I want to "stream" in real time the aggregated results of a complex search. The search will be kicked of by the ...
0
votes
0answers
39 views

Which OAuth2 Flow?

I'm just getting into OAuth2 and I'm a tad confused (you've probably heard that before)! I am writing a small independent service which will expose a basic REST API enabling client applications to ...
0
votes
0answers
29 views

Asp.Net Core: creating files in background

I have a web app with SPA client. When user requests a report, that request should create an excel or pdf file in background and notify user via SignalR. I guess I need to save that file somewhere ...
0
votes
0answers
42 views

Breaking a monolith into microservices using templates for similar apps

I have a huge monolith application, a ASP.NET MVC Framework service offering ~50 different "groups" of unrelated data, separated into 50 different controllers/business logics. I was tasked into ...
0
votes
0answers
58 views

AWS Step Functions for a synchron Lambda call from another Lambda

I'm trying to understand AWS Step Functions... so far I understand it as an orchestration among AWS Lambdas in case of distributed processing of a complex task: "Do this, then that, then wait, then ...
0
votes
0answers
98 views

Where should the API reside?

I have a microservice(opsApiServ) which hosts API to do operations(ops). /ops - POST, GET /ops-item - GET ops-item is just a single unit of operation, and ops is collection of operations (ops-item). ...
0
votes
0answers
47 views

How can I stop storing user data twice in two separate services

So I have two services that run, each with their own database. S1 stores user information and other primary data. Users also login and signup via S1 endpoints. S2 stores the same user information and ...
0
votes
0answers
43 views

Microservice auth layer vs each service authorizing requests?

I approached our architect with a solution in which all of our microservices verify the auth of the user invoking the call. Basically, what I've been doing for years, on different projects. He ...
0
votes
0answers
732 views

How to handle shared data across microservices?

At my work we have a typical microservice architecture, but one of the issues we are running into is sharing data across multiple services. We have certain data that is used by multiple services and ...
0
votes
0answers
38 views

Advice on how to model my microservices

I need to tackle this problem : we have to model some services aimed to handle all our customer registration process : - this include registration of the personal data (name,surname,email whith a ...
0
votes
0answers
186 views

How to handle role based access in my microservice architecture

We are trying to move from a monolith application to a microservice architecture faced by a spa application. One of the reason, is that we want to expose some services of our business to partners and ...
0
votes
0answers
97 views

How do I not lose the “reactive” nature of my services, simply because one of the services isn't reactive?

I've lately been very interested in reactive microservice design with streaming and event-driven architectures. When one writes (i.e., manages) services, this paradigm works extremely well by simply ...
0
votes
0answers
66 views

How do you integrate microservices that are distributed across domains and platforms?

Modern webapps have multiple microservices that may be on multiple domains (e.g. subdomains) and providers (e.g. both AWS and Google Cloud; or Google Container Engine Google App Engine within the ...