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.

4
votes
0answers
279 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
335 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
70 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
57 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
47 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
299 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
222 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
280 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
124 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
554 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
41 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
57 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
89 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
82 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
40 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
31 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
41 views

Message Broker in Client-Server-Applications

I'm currently planning an architecture for a system that should consist of multiple microservices. We definitely want to make use of a message broker (probably RabbitMQ). A simplified diagram of my ...
1
vote
0answers
121 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
82 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
368 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
276 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
93 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
279 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
185 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
228 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
309 views

Back end based on Microservices - concept

I plan to build a back end based on microservices. The following picture presents my current idea: Two important features are: uploading large text and/or video files stream video - display user in ...
1
vote
0answers
145 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
17 views

Usage patterns for spring cloud gateway on aws

Consider this setup for a microservices application on AWS. The question is about the API gateway part. AWS has one for managing the API of microservices. It has an authentication mechanism built-in, ...
0
votes
0answers
70 views

Microservice Architecture in Azure - Ideas for improving performance

We are about to develop a microservice architecture with azure functions inside azure. We thought about using interservice communication with durable functions. On app site we want to use an async ...
0
votes
0answers
33 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
24 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
39 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
21 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
92 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
45 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
54 views

Data replication in microservices

We are trying to move from a monolithic architecture to a microservice architecture. We thought of what would be the best way to segregate our services and started doing so one by one. Now we have a ...
0
votes
0answers
27 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
105 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
36 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
82 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
59 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, ...
0
votes
0answers
203 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 -...
0
votes
0answers
247 views

Interoperability, logic between microservices

I have a question about interoperability and communication between microservices. Let's say we have two microservices. First microservice calculates travel times of some routes. Second microservices ...
0
votes
0answers
94 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
64 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 ...
0
votes
0answers
210 views

Reusing existing canonical data model for REST services

I work in an enterprise where is slow transition from SOAP & SOA to Microservices&Rest like architecture. For specific business domains there are well established canonical data models which ...
0
votes
0answers
173 views

How to implement decoupled bounded contexts in microservices architecture?

I'm reading books and watching tutorials about microservices architecture and solutions. They are great and help a lot. They made the statement that sharing data models among services (context) is an ...
-1
votes
0answers
294 views

Hierarchies and Inter-process communication between microservices

I have an interesting problem. I have a micro-service which manages corporate hierarchy. A user in the hierarchy has permissions to nodes, which cascade down to children of those nodes. Now, the ...