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.

2
votes
1answer
974 views

How to architect Notification service logic?

We are building a notification service whose work is to send push notification to end user. There are two types of notifications Group notification where we send same text notification to all user's ...
3
votes
2answers
463 views

Microservices Autonomy

I'm currently looking at microservice architecture example and am struggling to make my services truly autonomous. I have the following services... CustomerAPI CustomerService OrderAPI OrderService ...
6
votes
4answers
3k views

Many-to-many associations in microservices

I currently have two microservices. We'll call them A and B. The database under microservice A has the following table: A |-- users The database under microservice B has the following table: B |-- ...
2
votes
2answers
721 views

Data Security Between Users in a Microservice Architecture

Our team has decided to move to a microservice approach for newly developed features. We've decided to keep a database/datastore per service and to split the services along the business function they ...
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
3answers
1k views

generate unique sequential IDs in microservices architecture

I'm working in the context of a (kind of) microservices architecture where services can have multiple instances that can create new documents in the same collection of a Mongo DB. There is a ...
1
vote
3answers
868 views

Does layered architecture still to be implemented inside all other architecture pattern like SOA and Microservices?

When we design the whole system we have few architecture pattern to select from. One of them is the layered architecture pattern, This pattern seems to be generic enough to fit in all other ...
3
votes
1answer
522 views

API Gateway & Microservices architecture [closed]

REST APIs can be exposed using an API Gateway and is considered to be a good practice. (at least when they are exposed to internet) However there are a lot of microservices inside an enterprise which ...
5
votes
2answers
297 views

Which architecture should i choose for Microservices which are both async and sync?

I have a microservice(Microservice A) which connects to a Client MQ and recieves messages and persists into the database.(Synchronous type MessageA after Message B for the same order). Internally i ...
4
votes
2answers
233 views

Microservices: Events Everywhere

My new team where I work are currently discussing how we go about changing our current old monolithic applications to go down the route of microservices. We are still at the early discussion and proof ...
1
vote
1answer
409 views

Design the interface of a microservice to cater multiple service requests

I have been working on a project with multiple microservices whose communication happens through API calls. Lets say microservice A calls a service provided by microservice B. According to the current ...
1
vote
3answers
262 views

how to write good software design documentation for an old project with limited documentation?

Two months ago I joined a development team for implementing new features over a software that evolved over 10 years. The current state is that there is very few documentation and in order to develop a ...
0
votes
1answer
145 views

How to scale developers environment?

Currently we are developing our microservices by running them all locally using docker. We are now limited by the resources of our local machine and we are trying to find a solution to scale our ...
0
votes
2answers
571 views

How can I create a Python microservice on AWS that both accepts REST connections and processes SQS messages?

Background: I'm working on a new project at work that will run in AWS. We're trying to use a modern microservice architecture and take advantage of cloud technology, but we don't have much experience ...
2
votes
1answer
755 views

Event-driven architecture and synchronization with a “First-timer microservice”

I'm working on a distributed application and getting deeper into Event-Driven architectures with Microservices. Let's say I have been running two Microservices, CustomerService and AccountService. ...
0
votes
2answers
177 views

architecture for the application

I am implementing some kind of web application that has basic social network functionality and browser text game. I do it basically for myself only in order to learn couple of things. (like using ...
13
votes
1answer
628 views

Should microservices be users?

We are trying to determine the best way to authorise users in a microservice architecture, while ensuring microservices have limited permissions. Our architecture uses a central authorisation service ...
2
votes
1answer
123 views

How to design the system based around a CLI tool

BACKGROUND I am trying to design a micro-services based SaaS application, where each micro-service would be packaged into their specific Docker container. I also have a CLI tool (a binary file) that ...
6
votes
5answers
341 views

Why is it considered a good practice to isolate data management in a microservice?

I have seen proponents of isolating data management and storage into microservices in a way that each microservice has its own data store (at least in a logical sense). Hence, joins and aggregations ...
3
votes
1answer
657 views

Separate projects in visual studio vs folders in a single project for microservices

Unsure if the question is too broad, or opinion based. Though will ask anyway. I'm currency reading through Microsofts "Architecture eBook", found https://www.microsoft.com/net/learn/architecture. It ...
1
vote
1answer
381 views

Contract decoupling on microservices

I am not trying to launch a Microservices vs SOA debate but I find hard to understand the following statement: "Microservices architecture does not support contract decoupling, whereas contract ...
1
vote
1answer
593 views

How to choose between a library and shared project?

I am working on a set of .NET Core 2.0 Microservices together with some other developers. I wrote some code to add my own custom logging as described here. My logger sends the logging messages to an ...
0
votes
1answer
308 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 ...
4
votes
1answer
92 views

How to co-ordinate separate product teams without lumbering everybody with excess process and meetings?

About a year ago we started on the journey of slowly breaking apart our legacy E-commerce platform and replacing it with smaller rewritten services. We now have several teams each focusing on separate ...
7
votes
2answers
2k views

DB migration strategy for docker containers in AWS ECS

I am working on creating a set of microservices in Docker (using .net core and AWS RDS as the backbone, but that is not relevant). As part of the deployment, the old container and new container co-...
1
vote
1answer
293 views

Designing .NET C# service endpoint for downloading big files

I have a UI and a .NET C# backend server that communicates with each other. I have a route /getBigFile that the UI calls on a button click, which the C# backend can take up to 60 seconds to create and ...
1
vote
1answer
892 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
600 views

How to handle caching and database management in microservices architecture?

I'm getting into microservices architecture and there are some issues which are badgering me. The main advantage of microservices is scalability. Let's say that I have service and I'm running 1-n ...
3
votes
2answers
2k views

How do event sourced systems make sure the read model is only updated once?

Currently looking into Event Sourcing in a Microservices architecture and I've found this article. It describes a possible implementation of CQRS and event sourcing. If the logic dealing with updating ...
2
votes
2answers
842 views

Verifying Access Token in Each Service of a Microservice Architecture

I'm working on a application which is implemented using microservice architecture. There is an authentication service (A) which uses jwt standard, and there are other services in the application like ...
0
votes
2answers
109 views

How to share code among different top-level repositories?

My company has one repository that contains five top-level projects, which are all different "services" (that being the flavor of the month). Even though they're all in a single repository, they're ...
1
vote
1answer
200 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
166 views

Updating database in Micro-service

Built a microservice which will update column value each time when it is called. Application stack - Spring boot ,hibernate and mySQL database. Currently we have listed following approaches in case ...
2
votes
2answers
363 views

How to perform end-to-end (incl. UI) testing with microservice architecture?

We're in a process of moving from a huge old monolithic architecture towards microservice one. Our product (which is mostly a large single-page app) is quite UI-centric, and thus the current codebase ...
1
vote
1answer
646 views

Messaging between microservices on AWS

Here is the scenario: We are running a microservices style architecture on AWS using API Gateway and EC2 instances. Let’s say there are five services: Photo Service, Topics Service, User Posts ...
0
votes
2answers
520 views

Consuming external APIs within the microservice architecture

I'm writing a small microservice-based application. One of the services is assigned the task of querying an external API and processing the JSON response (filtered list of houses). Since I'm using ...
0
votes
1answer
2k views

Microservices session data when communicating internally

I'm not sure the title is correct, so please advise if you think of a better title. The scenario is: We have an API gateway that exposes REST API to our clients (web and mobile apps). We have a "...
9
votes
2answers
1k views

What is really different between SOA and Microservices

Disclaimer I hope I am not stepping on anyone's toes or offending either concepts' enthusiasts Background I have been looking for real differences between Service Oriented Architecture and ...
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 ...
4
votes
2answers
425 views

Alternative to synchronous REST communication betweeen microservices

I know synchronous communication between services is an anti-pattern, so I'm searching for a good solution for my use-case. I have this two services: Location Service that manages users location ...
3
votes
3answers
347 views

How to avoid confusion between services as in “service layer” and services as microservices?

If I have microservice architecture and one or more microservices have layered architecture that contain service layer, how can I avoid naming confusion between microservices and structural units of ...
2
votes
1answer
399 views

Should an Identity Provider be a separate web application than a Authentication system

I'm currently writing a SAML Identity provider(Idp) to enable SSO and one of the easy ways to go about it is to use Shibboleth Identity Provider which is a ready deployable web application on it's own....
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
1answer
83 views

Microservice - synchronise data access [closed]

If got a scenario with accounts in any currency. The account got multiple lines/items for each transaction which adds or removes an amount of the account. Basically similar to a bank account. The ...
1
vote
1answer
74 views

Package time config management for microservices

There are solutions in the market such as Spring cloud, Consul etc. which can store and serve env. specific configuration data. But all of these services involve a runtime or boot-time dependency ...
2
votes
1answer
178 views

communicating micro-services in a static language (java)

I'm confronted with a "microservices" architecture consisting of Spring Boot services fronted by a Vaadin Spring Boot application (with an API gateway in between), all written in Java. Communication ...
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 ...
0
votes
2answers
164 views

Microservice application design

I am looking at designing an application that has a Microservices back end and a SPA front end. I have some concern about performance, a single CRUD page to populate may require calls to 6 or 7 ...
1
vote
3answers
255 views

Row level access in a monolith application and in microservices based application

I would like to get an advice on how to tackle such a problem. Currently we're using SQL Server as our database and the whole application is a fat, juicy monolith which we'd like to break down. There'...
0
votes
1answer
692 views

API Gateway: Filtering data between microservices

I have a Location Service with an endpoint that returns people near from a given user: GET /users/near?user=7455 [ { "userId": 1214, "location" : [2134983, 89384] }, //more ...