New answers tagged

0 votes

Large file / data transfer in a Microservice Architecture

This is very late, But will leave the answer to others people who encounter the same problem. Does it make sense for all our microservices to be accepting this unique ID as part of their API for the ...
user avatar
  • 657
2 votes

How to scale transactional outbox pattern with document database?

In this answer I do not dive into MongoDB technology and how to mitigate issues with duplicates manually. I explain what was referenced in the article (Debezium), suggest to use out of the box ...
user avatar
0 votes

AWS Serverless Microservice design

As mentioned, SQS might be a good option for better ensuring the processing of messages from your project updates. This would make the architecture more fault tolerant since the consuming Lambda needs ...
user avatar
1 vote
Accepted

Granularity of API Gateways to Service Balancers

There's nothing stopping a single API Gateway instance being used for all services, while still managing inter-service communications. Each individual service will simply have to send all requests to ...
user avatar
0 votes

AWS Serverless Microservice design

You could add onto this design by subscribing an SQS Queue to an SNS Topic that would then trigger a Lambda function. The SQS would handle the Queuing of notifications into the Lambda. You would also ...
user avatar
4 votes
Accepted

Service discovery and load balancers with high-frequency health checks

There seems to be a misconception about both service discovery and load balancing. There is no "versus" comparison, because service discovery and load balancing are independent, but ...
user avatar
0 votes

Using distributed locks in microservice environment

Azure supports Lease on Blob Storage. In your service, before starting the process, lease a file in blob storage, then other process has to wait for lock on the file. It is the same as a distributed ...
user avatar
  • 101
1 vote
Accepted

DDD: Service role vs Repository

Maybe, from a Domain perspective, there's not enough complexity in my little project to make use of microservices for now. As your project is (derived from) an educational project, it is indeed very ...
user avatar
0 votes

Saving REST API IDs into a different microservice

I guess there must be some kind of mapping service which, given an email or a phone number, returns the user ID to use for the REST calls? Where should this translation service be exposed? In the ...
user avatar
1 vote

How to share state between microservices

Microservices should only be small enough to do one useful function from a domain perspective. If you have a generally unknowable amount of services being called, that is a massive red flag that ...
user avatar
  • 13.1k
2 votes

Saving REST API IDs into a different microservice

Is it good practice to save the user id for a user in the orders microservice (that is, in the database that backs the microservice)? (or, in the general case, the ID of an object managed by a ...
user avatar
  • 38.3k
-1 votes

One db per microservice, on the same storage engine?

I think to start with cases where in you don't need strict data isolation, you can adopt a strategy to host service tables in the same Database to start with and later take a call as your system grows....
user avatar
  • 1
0 votes

Tight coupling between micro services

First let's point out that having an http call in between is not tight coupling. Tight coupling means that the interfaces are designed in such a way that every minimal change on one side (provider/...
user avatar
  • 641
6 votes

One db per microservice, on the same storage engine?

A microservice architecture intends to ensure scalable, loosely coupled services that are independently deployable. The database per service pattern contributes to this objective by making the data ...
user avatar
  • 68.8k
8 votes

One db per microservice, on the same storage engine?

It always depends on what you want to achieve. For example, if for some reason, you would need to restart a db to reconfigure / deploy a new version of the service, you would influence other teams' ...
user avatar

Top 50 recent answers are included