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.

0
votes
1answer
205 views

X.509 authentication for microservices with JavaEE [closed]

I am trying to design an app that is based on microservice architecture. Backend is written in JavaEE (micro profile, not Spring Boot), while for front-end I would use Angular5. Now I am wondering ...
6
votes
1answer
509 views

Is mocking microservices a thing?

I'm trying to get my head around a the development workflow for working with microservices and docker multicontainer applications. The thing that I'm particularly trying to solve - is getting a good ...
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. ...
7
votes
2answers
325 views

Maintaining and documenting API endpoints of many applications in a microservice architecture

I think one of the biggest pain points in working with microservices is making sure that the APIs are well-documented and APIs do not change their behavior without affecting downstream applications. ...
2
votes
2answers
142 views

Does a framework like the Spring Framework fall under the Data Centric Architecture?

With all the talk of Microservices with Domain Driven Design, I have been looking at two architectures, the Database-Centric Architecture and the Domain-Centric Architecture (Not to be confused with ...
1
vote
1answer
98 views

Microservice Communication: Enforce RPC?

I have the opinion that each method in a service should only do one small step of a larger task, delegate a result to the successive step/method and terminate. No matter if this next method lives in ...
2
votes
1answer
266 views

microservices methods granularity

I'm building an Mvc application with microservices that retrieve information from the database. I have a question related the microservices. I want an entity from database with some property in a ...
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 ...
6
votes
2answers
1k views

Handling error messages from others services in Micro Service Architecture

Our company runs applications on a Micro Service architecture that includes thousands of services. I am working on a backend application "X" that talks to 50+ services. Frontend services call my ...
-1
votes
2answers
764 views

Should I duplicate model and database of master data across services in microservice

We are a fintech startup that trying to re-build monolith php to microservice. As typical web app, we use to manage master data in admin page. How do i distribute this master data through microservice?...
3
votes
1answer
290 views

What can be the design of a distributed high available trade exchange?

I am working on design of a financial xchange system and especially the order-matching part. I couldn't find a clear/complete design article especially for scalable/high available order-maching ...
3
votes
1answer
205 views

Disintegrating monolithic application with Micro services vs ESB approach?

I have only theoretical knowledge about ESB. Use case:- I have ecommerce like application where I can receive orders from multiple sources in different formats . Once application is submitted I ...
3
votes
1answer
233 views

Miroservices default value for Fallback scenarios

Default values are often suggested to be part of failover mechanism for microservices. At a high level, for any services (say microservices here) the nature of the operation can be broadly classified ...
4
votes
2answers
497 views

Which is the best option to exchange large amount of data in a micro-service architecture?

Application I am working on requires text contents to be extracted from various proprietary document formats like Microsoft word documents (doc, ppt, xls ), pdf and etc. I am planning to implement a ...
1
vote
1answer
208 views

Responsibility of message template for OTP microservice

We want to design a solution for generation and validation of OTP(One Time Password) process. We decided to create OTP process as a separate micro service. Since OTP need to be communicated to users ...
2
votes
1answer
776 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
398 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 ...
5
votes
4answers
2k 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
652 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
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
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
718 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
484 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 ...
4
votes
2answers
280 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
227 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
394 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
242 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
505 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
678 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
176 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
598 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
340 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
556 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
339 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
470 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
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 ...
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 ...
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
278 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
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
555 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
1k 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
689 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
106 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
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
132 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
334 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 ...