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

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.

2
votes
1answer
275 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
133 views

Service Bus or Event Stream for Event-Driven Architecture

I'm creating a set of Microservices following Event-Driven Architecture using Event-Carried State Transfer to move state from one service to another. Given the following services; Order service ...
1
vote
1answer
825 views

Managing/Designing actors and their state in Azure Service Fabric

After some consideration I ended up seeing that Service Fabric Actors is probably the best way to start. Now, I'm wondering if I'm approaching this the right way. The structure Below, is the ...
1
vote
1answer
193 views

Azure Service Fabric - Designing a Calculation Engine

Suppose I have the following devices: Device A Device B Device C (...) Also, for each device, I have the following measurements: Measurement 1 Measurement 2 (...) Each measurement event includes a ...
0
votes
1answer
46 views

Max recommended downstream calls for micro service inter-communication

Broadly speaking how many downstream calls would be acceptable for a synchronous Microservice interaction, from say a gateway API down to a a few supporting services? We are seeing big swings in ...
0
votes
1answer
53 views

How to protect while loosely coupling a db server that is shared by 2 different services

Background information I have a database that will be used by two different web applications. Solution A (user driven web application) resides on the public internet and will write / update / delete ...
0
votes
1answer
143 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 ...
0
votes
1answer
289 views

Micro service architecture : Solving complex queries owned by particular service

I am working micro service architecture and figuring out what is the best way to get complex data from a micro service. So for example : Let's say micro service A is owning data based on any CRUD ...
-1
votes
1answer
35 views

Querying in event driven microservices

I am trying to get my head around "event driven" microservices. I understood, there are several techniques and patterns, like event notification, event sourcing, CQRS, etc that can help us to achive ...
-1
votes
1answer
45 views

Whats the pros and cons of RPCs vs. HTTP in information exchange in microservice architectures?

What type of components could benefit from RPC over HTTP, vice-versa? Does there exist other information exchange mechanisms, what are their use? I've seen smart people use both, I'm sure for ...
4
votes
0answers
253 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
308 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
118 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
61 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
49 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
46 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
204 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
260 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
118 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
542 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
24 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
111 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
68 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
57 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
332 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
286 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 ...
1
vote
0answers
262 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
90 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
255 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
177 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
213 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
279 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
143 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
31 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
31 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
55 views

microservice authentication/ authorization: system token vs user token

I'm building a microservice architecture where basically each service represents a resource and each action on those resources are accessed control and secured by a UserToken (JWT) generated by a ...
0
votes
0answers
72 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, ...
0
votes
0answers
48 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
1k 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
164 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
208 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
89 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
63 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
1k views

Should I separate my authentication service and my user service?

I'm following a microservices architecture and using JWT for authorization and authentication. I have a User service that includes some details about users, and I was considering including ...
0
votes
0answers
71 views

Event Collaboration queries in micro services architecture

After reading through Martin Fowler's description of the Event Collaboration pattern (https://martinfowler.com/eaaDev/EventCollaboration.html) it appears that following the pattern entails doing away ...
0
votes
0answers
162 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
55 views

Extending a webscraper's functionality. Microservices vs Monolith?

Note: I use the term "Monolith" loosely. The webscraper is simple and small. I just built a bot that regularly scrapes a site for guest passes, then forwards its findings to me via PushBullet. This ...
0
votes
0answers
160 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 ...
0
votes
0answers
279 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 ...
0
votes
0answers
435 views

Should/can a web crawler be a separate microservice?

I've never built anything using microservices and all the articles I can find are not very practical. I'm building a web application that relies on a web crawler to scrape data into a database, a ...