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.

Filter by
Sorted by
Tagged with
-2
votes
0answers
40 views

Routing with micro services

I’ve decided to create my project following a micro service architecture. I have a products service and a reviews service. The products service essentially stores all information regarding a product ...
0
votes
3answers
81 views

Microservices asynchronous communication do handle inventory

I'm building up an ecommerce app based on microservices and almost every article points out to use async communication. But I'm facing a situation that I think is better use sync communication. So, ...
24
votes
4answers
5k views

I'm not seeing 'tightly coupled code' as one of the drawbacks of a monolithic application architecture

One of the most common things I see when discussing pros/cons of microservice vs monolithic architecture is that monolithic applications have, or always trend toward, 'tight coupling.' To be honest, I'...
4
votes
1answer
61 views

Architecting basket in high scale distributed application

I'm designing an e-commerce application. Main flow is pretty straightforward: customer add items to basket, checkouts the basket (place an order) and waits for delivery. There are following ...
7
votes
2answers
293 views

How does user authorization work in a Microservice architecture

I'm learning how to design a Microservice architecture. For example, here is a simple Microservice architecture: I'm kind of confused by the Account Service. As we know, for a web service, normally ...
3
votes
3answers
260 views

Caching model objects to avoid multiple SQL commits

In decomposing a monolithic web application into smaller services and by following the Strangler Fig pattern, I'm in the middle of a problem for which I can't find a practical solution. There is a web ...
3
votes
4answers
139 views

Is a cloud / lambda function a microservice?

If each cloud function or lambda function is hosted and scaled independently would it be considered a microservice?
4
votes
2answers
115 views

Microservices shared data

I'm designing a microservices structure, and I'm facing some problems on how to place data on different microservices. For example, I have users that subscribe to plans and the plans have different ...
-3
votes
1answer
29 views

Exchanging model info between integration app and domain app

I have two micro services: a) Order b) Integration Integration is an anti corruption layer. Each day Integration is taking all customers data from external system as a huge csv file and map it to ...
1
vote
2answers
74 views

Share files between microservices

We have a service (lets say FileService) that provides API to store/download files into various stores (S3/local file etc.,) We have a scenario where one microservice (Service A) writes a file to S3 ...
1
vote
3answers
114 views

In a micro service architecture, how should two services communicate with each other? Shared database? REST calls?

I've read a number of conflicting articles as to whether microservices should share a database. How and when should microservices communicate? Someone posed the example of 2 microservices: Employee ...
1
vote
1answer
42 views

Best approach for developing a stateful computation-heavy application with a rest-api interface using python?

I want to develop an end-to-end machine learning application where data will be in GPU-memory and computations will run on the GPU. A stateless RESTfull service with a database is not desirable since ...
0
votes
0answers
39 views

Outbox pattern in a monolith with NoSQL?

As I have come to understand, there is generally two ways of ensuring atomicity of both domain events and state changes to aggregate roots in order to achieve at least once delivery of events--the ...
2
votes
2answers
148 views

Do you always need to achieve full decoupling in Microservices?

I don't think one can achieve full decoupling with micro-services. We might have a Microservice architecture in which they are fully dependent on each other. Example I have 2 services: an order ...
1
vote
0answers
60 views

In a microserices environment, how to track which version of which service is deployed where and when?

TLDR How do you keep track of which version of which microservice is deployed in which environment? In Details Say your company has dozens of Microservices and 5 different environments (Dev, QA, Prod, ...
0
votes
0answers
27 views

Distributed transactions within a microservices architecture

In my company we had a system on .net framework platform. That was made from an orchestator, different rest API services on top of a monolithic oracle DB. With a huge plsql library. We used ...
0
votes
1answer
59 views

Suggestion a Safe Strategy to Migrate to Monorepo

Consider a bitbucket project with 3 separate repos, A, B, C. These form the components of a microservices application, APP. We'd like to safely try out a monorepo pattern and see if it streamlines ...
2
votes
1answer
141 views

Event Driven Architecture - Best Practice

I am trying to understand the best practice around the event-driven architectures. say I have 2 services order service and inventory service. An user wants to order product and sends a request to ...
0
votes
3answers
118 views

Bug triage on a micro-services architecture

We do have a micro-services architecture with a team assigned to each micro-service considering it as a product on itself. The "real product" is a front-end that uses multiple micro-services ...
-3
votes
1answer
113 views

What is the most common approach for microservices to access data managed by other micro services?

I am exploring using a microservice architecture. Among others, this would include three services, an Orders Service, a Products Service, and a Fulfillment Service. Let's say the Fulfillment Service ...
1
vote
2answers
89 views

How to make consumer idempotent when publisher publishes “at least once”?

I'm trying to implement microservices and I'm still super new to the subject, but, I was able to answer most of questions. However, one of the questions that I can't come up with a good solution to is ...
3
votes
4answers
204 views

HTTP POST request status 200 vs 204 vs 404

Our POST API takes in an identifier (let's say deviceId) in order to compute the accuracy of the location we have stored for that device in a DB; the result of that compution is then saved in a ...
1
vote
0answers
33 views

Strategy for a worker microservice to communicate with GraphQL API

I am trying to find the best way for a microservice to communicate with GraphQL Basic scenario: Client subscribed to GraphQL via Subscriptions (WebSockets) Client creates an Item using Mutation which ...
0
votes
0answers
55 views

How to save to database and publish atomically? ( all or none )

I'm trying to implement microservice architecture to our application (basically an ecommerce) and one of the challenges that I can't really find a good answer for (despite being so many similar ...
2
votes
1answer
91 views

How to design asynchronous communication in microservices?

Intro Hey, my question is kind of hard to explain so I apologize in advance. Question I'm trying to implement microservices for our ecommerce and I'm having issues on how to respond to a request when ...
0
votes
1answer
86 views

Implementing the microservice pattern

We are developing a system that runs a certain kind of simulation for our customers: Every simulation runs on it's own server. We typically have a two digit number of simulations running. A client ...
0
votes
1answer
55 views

Can modeling Firestore using CQRS concept will prevent from Firebase locked-in?

I decided to go with Firestore to our new project. The goal is I don't want our server logics and database designs are locked-in by Cloud Function and Firestore, And also long-term maintainability. ...
1
vote
1answer
122 views

Communication between services in a microservices architecture, is direct communication okay?

I've been reading a lot on why one should use messages (w/ event sourcing/CQRS) for microservices communication and I get it. But most of the stuff I read online state that the main reason for using ...
2
votes
1answer
70 views

Data replication via message broker or built-in replication feature?

I'm working on a microservice system where 8 services share the same data - most notably: auth, forum, portal. Essentially, forum and portal use users from auth, and since I went with the 'AP' ...
0
votes
1answer
38 views

Data aggregation microservice based on user profile

I'm trying to learn about microservices and best practices and came across this scenario and didn't know what was the correct way of approaching it: I have a website that can display widgets (let's ...
-1
votes
1answer
75 views

How is scallability and reliability provided to microservices?

Good afternoon, I'm getting into microservices - in fact, I've managed to make few full projects based on that architecture - but they weren't really robust, so I couldn't get the full scope of using ...
0
votes
0answers
18 views

How can we apply in the same time role based access to a service used by internal application, external application and others internal services?

I'm trying to figure out how to make sure that our services which are both used by internal and external applications must be secure to only allow calls from clients who are authorized and have the ...
1
vote
4answers
103 views

should microservices be orchestrated, or work independently

it might be too opinionated, but I've been struggling in this for far too long and cant seem to make up my mind. I am trying to compare two approaches to designing a system: Lets assume You want to ...
3
votes
0answers
53 views

AWS Serverless Microservice design

I am building an open source task management and note taking service that runs on AWS. I'm building it mostly as a hobby in my spare time and will eventually ship a mobile app that consume it into an ...
1
vote
0answers
45 views

How to handle the co-exist phase of Strangler pattern gracefully

We are consolidating a number of disparate monoliths, redesigning and implementing a greenfield suite of microservices and micro-frontends. The stack is all new, the design is all new - it couldn't ...
1
vote
4answers
176 views

The meaning of “Fix Version” field in Jira, while working in agile, microservices and CI/CD processes

When working on a monolith application in a "waterfall" process, a "Fix Version" field makes a lot of sense. Say you have the "November 2020" planned release, you can add/...
0
votes
1answer
160 views

What is the most common stateless way for authentication in microservices?

I'm trying to get into Microservices by creating a project, so far I've stumbled upon authentication mechanisms, in a monolithic architecture, the client (web app) would send a request with the user ...
0
votes
0answers
58 views

Single DB - Multitenancy with microservices

We are migrating from a monolith to microservice. Note : We store the tenant details in master tenant db which is seperate from the application database As-is: The app serves multiple tenants and has ...
0
votes
1answer
57 views

Design a correct microservices architecture with data relations

I just started thinking about building a microservices architecture for learning purposes. I understood that microservices are split, and they should be independent, even when storing data, but what ...
0
votes
3answers
194 views

Is microservices architecture a good candidate for a pipeline?

I have a monolithic application which can be divided into multiple steps and different steps have variable scaling requirement, however the input of the next step is the output of the current step. ...
0
votes
1answer
49 views

Using rest services or python modules directly?

Imagine you're in a Python setup, with all of the projects you're working on. Now, as a base line, you have a Python module that is the backbone (backbone.py) to everything when it comes to getting ...
1
vote
1answer
109 views

Building a Microservices App — Can you give feedback on architecture?

I did some googling, and I was directed to Software Engineering to ask architecture questions. If you know of a different forum that could help me, please direct me to it I recently started learning ...
0
votes
1answer
33 views

Service integration with large amounts of data

I am trying to assess the viability of microservices/DDD for an application I am writing, for which a particular context/service needs to respond to an action completing in another context. Whilst ...
0
votes
1answer
43 views

Multitenancy - Get tenant in microservices architecture

In a multi-tenant architecture where each tenant has its own database, what would be the best way for each of the microservices to obtain information about the tenant (such as which database to ...
2
votes
2answers
48 views

Where to place an in-memory cache to handle repetitive bursts of database queries from several downstream sources, all within a few milliseconds span

I'm working on a Java service that runs on Google Cloud Platform and utilizes a MySQL database via Cloud SQL. The database stores simple relationships between users, accounts they belong to, and ...
1
vote
0answers
111 views

RabbitMQ messages reliability for at-least-once delivery

I wanted to ask what are the possibilities of maintaining reliability when exchanging messages between microservices, when one of those message is rejected. As of today, we don't want to lose messages,...
0
votes
1answer
49 views

Microservice Two-Phase Commit: Transaction coordinator is down in the middle of process

I've just read this article, about handling distributed transactions in the microservices world. In the article, the author explained two possible solutions available. I'm familiar with SAGA. But ...
8
votes
4answers
362 views

DDD in microservices - where to draw the line of responsibility of a microservice?

TLDR: If microservice A needs to combine data from services B & C (that are not aware of one another), should B (or C) do the data merging for service A, or it will be up to service A? In Details ...
0
votes
1answer
87 views

How to build a data pipeline through several microservices

We are building a microservice architecture. We have one service which imports a set of data (usually, ca. 10MB). Another service should do some analysing and manipulation stuff on these data. A third ...
0
votes
0answers
17 views

Passing an OAuth Token between services with Zero Trust and audience checks

Let's say, we're using an OAuth / OpenID Connect (OIDC) flow (in a Zero-Trust situation) to secure two APIs: ServiceA and ServiceB. To implement some of the functionality of ServiceA, it depends on ...

1
2 3 4 5
15