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.
3
votes
1answer
35 views
How to Implement Service Discovery for External Docker Swarm Clients
I have a question regarding a specific case with our product.
Let's say I have two services; Service A and Service B. (The number of services varies from an installation to installation). They are ...
4
votes
2answers
80 views
What is a good reason for separating intelligence and dao layers in a microservice?
I am having a long-term debate with my architect about architecture choices. The entreprise where I work in is migrating from a monolithic architecture to a microservices one.
The debate is located ...
0
votes
0answers
50 views
“Microservices” with shared DB schema. A stab at sanity and a call for discussion/suggestions [on hold]
We're making a polyglot project (rules out true "component-based architecture") that has to communicate with a single DB schema. This is pretty much a requirement and isn't up for rethinking at the ...
0
votes
2answers
54 views
Notifications in a microservice architecture: In Application Logic vs. Database Triggers
Context
Our group builds and is responsible for maintaining multiple apps for a larger institution. We are in the process of breaking up our monoliths into reusable microservices (hooray!). When we ...
1
vote
1answer
42 views
API Gateway security (for microservice architecture)
we have started with microservices recently, but we have some problems with implementing the Security layer.
The idea is that the request comes to Gateway, the Gateway looks to authorization header, ...
6
votes
2answers
194 views
How to scale microservices in DDD world?
I am interested what would be the ideal way to scale Microservices in DDD world?
In case of the following scenario, where Sales context is hosted as a microservice on a different host then Support ...
2
votes
2answers
248 views
Should Microservices talk to each other?
I'm designing an application using Micro-Services and I'm unsure on the best mechanism to use to collect data from multiple services.
I believe there are two options:
Integrate an 'inter-service' ...
1
vote
1answer
64 views
How to consume external RESTful API with Symfony?
We are building a Microservice architecture for our projects, with mostly front-end Symfony applications interacting with back-end RESTful APIs.
The problem is this approach is breaking the Symfony ...
0
votes
0answers
13 views
Metrics Collector at Microservices
I am developing an application which is based on microservices architecture with Spring Boot. Beside my application jar I have a dashboard application jar too. I want to show some metrics at both my ...
6
votes
2answers
181 views
Adding microservices to a monolithic architecture?
Does it make sense to add microservices to a monolithic architecture? E.g. if the monolithic system is old and is seen as too big, can it slowly be turned into a microservice based architecture?
...
12
votes
5answers
476 views
Autonomous Microservices, event queues and service discovery
I've been reading a lot about micro-services lately, and here are some of the conclusions I got so far (please correct me if I'm wrong at any point).
Micro-services architecture goes well with domain ...
3
votes
1answer
85 views
Should I have a single Microservice Instance when there are several versions of the same database
We have 25 instances of the same database facilitating different production plants in our organization. Basically, location X uses it's own copy of the database, location Y uses it's own copy, etc. ...
1
vote
2answers
128 views
monolith vs microservices for app idea
I have decided to start building a SAAS app. I wish to keep hosting costs low initially, whilst still providing a good user experience. Here are the components that will make up my app:
Front End
...
2
votes
2answers
89 views
Setting up development environment in micro-services architecture
We are moving towards developing a web app in a micro-services architecture.
We thought about running the services behind a API gateway that will handle authentication and will proxy the requests to ...
2
votes
1answer
35 views
How to recognize consumers in AMQP architecture
I'm doing an project where I'm using a microservice architecture. All the services within this architecture communicate with each other using an AMQP broker (RabbitMQ).
When something happens in a ...
0
votes
0answers
38 views
Two processes in a single docker container or two services connecting to the same db?
I recently started moving a monolithic application to microservices architecture using docker containers.
The general idea of the app is:
scraping data -> format the data -> save the data to MySQL -...
8
votes
2answers
316 views
How to fit a rules engine in a microservice architecture?
... when it requires lots of input data?
Current situation
We are implementing (and now maintaining) an online shopping web application in a microservice architecture.
One of the requirements is ...
6
votes
2answers
97 views
Handling changes in a event-driven microservice architecture
I'm doing an research-project where I'm researching the options to handle changes in an event-driven microservice architecture.
So, let's say we got an application where we got four different ...
3
votes
1answer
167 views
Which approach should I use to split a monolithic application into several microservices?
We have a huge project that desperately needs to be broken apart into multiple databases and applications. I can think of 2 possible approaches to this problem:
Use a REST endpoint on each service to ...
0
votes
0answers
48 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 ...
2
votes
1answer
96 views
Advantages and disadvantages of building web app purely with microservices and hybrid with web framework
Definition:
Purely microservice: Not using any web framework such as Spring, Laravel, Zend, Django. Web app is a single page app loading data via Ajax calls to web services
Hybrid: The web framework ...
-1
votes
2answers
119 views
Should Microservice still use web framework such as Spring
My understanding of Microservice architect is that much of the work is shifted to the front end client side in a single page application (SPA).
The SPA will then interact with the back end ...
1
vote
0answers
115 views
How does microservice architecture handle situations when immediate response is required? [duplicate]
What is the best practice of a multi-step processing in a micro-service system which is using publish/subscribe architecture as internal source of communication and also requires immediate response?
...
3
votes
1answer
64 views
Should a State Machine or Processing Engine be abstracted away from the UI?
I'm working on a suite of micro-services, with a web-based GUI. We are using a 3rd party state machine via REST calls. Sometimes we get/set state from one of our micro-services, while other times we ...
2
votes
2answers
82 views
User interface and process that involves asynchronous communication between several microservices
System consists of several micro-services and each of them is in charge of it's own context, such as booking, payment, products and notifications.
Let's imagine we have a traveler who is seeking ...
2
votes
1answer
108 views
Microservices and user roles
Is having user-type per micro-service good approach?
Example:
Users in identity management context can have one of predefined user_types:
affiliate_user
b2b_user
accomodation_owner
agent
admin
But ...
0
votes
0answers
57 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
1answer
79 views
Messages' translations in microservice architecture
I work with monolith web application written in PHP that is being migrated step-by-step into microservices. I would like to keep the same UI with several new features that have been implemented during ...
0
votes
0answers
27 views
Inter datacenter web applications
Is it possible to deploy a web application utilising microservices on both AWS and GCE? What are the challenges of this endeavour and how can this be done?
There are some use cases where this could ...
0
votes
1answer
42 views
Appropriate HTTP status code when authorization server is unavailable
We have authorization server which is in charge of checking token validity, expiration etc. Which HTTP status code should be returned if the authorization server is down?
Should it be 401 with "...
8
votes
5answers
507 views
Authorization and authentication system for microservices and consumers
We plan to refactor our company system into a micro-service based system. This micro-services will be used by our own internal company applications and by 3rd party partners if needed. One for booking,...
0
votes
3answers
101 views
Microservices design:operation centric or object centric design ?
We are about designing microservices application around REST API. The application is aimed to search, Create, Update and retrieve document from many heterogeneous repositories.
I'm wondering if I ...
1
vote
2answers
167 views
Microservices and authorization
We are currently working on a micro-service based system. The idea behind it is to split our monolithic system to small domains (micro-service per domain).
All services will be used by our internal ...
1
vote
2answers
105 views
How to design authorization between docker microservices?
I have 2 micro-services. One is a Django API, the other is a worker. Each one of these lives in side a docker container.
The API is a public API for the web front end. It handles CRUD operations for ...
1
vote
2answers
163 views
data aggregation pattern for microservices: daily feed
Let's say you have the following application: users can be part of different organizations. Different users can create tasks and projects within an organization. In a microservice architecture, there ...
0
votes
1answer
106 views
Populate User info between services on microservices architecture
I'm working on a microservices architecture which contains a couple a REST API as a services and a SPA as an interface. In addition, there are an "special" (is not speacial at all, it just special ...
6
votes
2answers
220 views
Right way to spread secret keys between microservices
I have a few services that sign some data with an asymmetric cryptography algorithm (like RSA).
I need to spread some secret (private) keys between all instances of the service.
I've found a few ways ...
0
votes
0answers
24 views
Integrating ActiveMQ in jetty
I was wondering how to integrate an ActiveMQ message broker into jetty, so that jetty starts up the broker (or ensures that it is running) before running the services.
Right now we have solved this ...
2
votes
1answer
85 views
Handling cases where the message queue is unreachable
We are using Apache Camel with ActiveMQ in a microservice architecture in a growing system of integration solutions. I was wondering how each service should react when they are unable to connect to ...
0
votes
0answers
41 views
Set up E-Mail message queue with digest system
We're currently building out a system to send out e-mail notifications in a digest format. We'll be delegating the actual sending to Sendgrid, but first we need to construct these messages using the ...
6
votes
1answer
126 views
Best practice for ensuring name uniqueness/correctness in message queues in a microservice architecture/distributed system
I was wondering what a good solution would be for ensuring that queue-names are entered correctly and are only used by the correct applications in a large system which uses message queues to exchange ...
3
votes
2answers
163 views
Microservice architecture shared domain models
Lets assume that we have a Spring Boot application that uses microservices architecture. Each of the services has its own domain models, but each service must reference a User domain object. What ...
0
votes
1answer
108 views
External User ID to Internal User ID
There is an internal API, REST client over DB, all of which methods require User ID as parameter.
User ID is an integer value - numeric PK in User table.
Also there is an public API, that is like a ...
1
vote
1answer
150 views
Should I consider microservice as an epic or a project in TFS?
When using tools such as TFS or JIRA to plan an application made of 10+ microservices, I am concerned should I consider microservice as an epic or as an new project?
In TFS when splitting ...
2
votes
2answers
72 views
AMQP broker and happen-before guarantees
I am trying to figure out how an AMQP broker, such as RabbitMQ, can be integrated in our architecture. This should allow to easily scale horizontally in the future.
For the sake of simplicity, let me ...
5
votes
1answer
289 views
Why is it such a bad idea to share an interface between server and client?
I was reading the Spring Cloud Netflix documentation when I found out about a way to share an interface between an HTTP server and its client. They use this example for microservices, although there's ...
4
votes
1answer
969 views
What are the important considerations when switching from monolithic to microservices architecture in .NET?
We are contemplating breaking up our monolithic monsters into microservices based architecture progressively. We have 5 teams, each team containing 2-3 C# developers, at least 1 database developer, ...
0
votes
1answer
92 views
User-related logging in the microservices architecture
What is the best practice for logging user-related data in microservices architecture?
In example: I would like to audit/persist to database information on who deleted a resource.
I have user info on ...
1
vote
1answer
146 views
Cross-cutting concerns and library sharing in Microservice architecture
I've been thinking about practicing with a simple Microservice (oxymoron I guess) application and I found an issue I was not able to resolve.
I'll go with a concrete example since the definition of ...
4
votes
2answers
323 views
Micro-service database management?
Most people say when building micro-services, that it's best to have separate databases for each of the microservices.
E.g:
User-microservice:
DB - User
userId
name
Etc...
Review-microservice:
...