Questions tagged [microservices]

An architectural approach to developing a single application as a suite of small individually deployable services.

The microservice architectural style is an approach to developing a single application as a suite of small services, each running in its own process and communicating with lightweight mechanisms, often an HTTP resource API. These services are built around business capabilities and independently deployable by fully automated deployment machinery. There is a bare mininum of centralized management of these services, which may be written in different programming languages and use different data storage technologies.

Microservices Definition by Lewis/Fowler

Properties:

  • The services are easy to replace.
  • Services are organized around capabilities, e.g. user interface front-end, recommendation, logistics, billing, etc.
  • Services can be implemented using different programming languages, databases, hardware and software environment, depending on what fits best.
  • Architectures are symmetrical rather than hierarchical (producer/consumer).

Philosophy:

  • The services are small - fine-grained to perform a single function.
  • The organization culture should embrace automation of deployment and
    testing. This eases the burden on management and operations.
  • The culture and design principles should embrace failure and faults, similar to anti-fragile systems.
  • The services are elastic, resilient, composable, minimal, and complete.

Books:

Besides there are thousands of books that speak about microservices focused on some language like Python or Java or some platforms like Azure or AWS easily to find.

Articles

The following is an great article series from the NGINX Blog.

Sites

9062 questions
3
votes
1 answer

How to override URL suffix for Hystrix metrics stream endpoint?

In our setup we have lots of Dropwizard services which are streaming their metrics to a Hystrix dashboard. We are writing a new service in Spring Boot and would like the metrics stream to be on the same URL as the Dropwizard one, but I can't find…
barrymac
  • 2,750
  • 1
  • 20
  • 32
3
votes
2 answers

Microservices - IPC authentication/authorization

We're trying to figure out a best practice for IPC authentication and authorization. I'll explain. We have a micro-services based architecture SaaS with a dedicated service for authentication. This service is responsible for doing the authentication…
Lior Ohana
  • 3,467
  • 4
  • 34
  • 49
3
votes
4 answers

Golang Workspaces In Practice

According to the Go documentation they would like you to have a workspace that you should put all their projects in.1 However, as far as I can tell, this all falls apart as soon as you want to make a project that does not use Go exclusively. Take a…
Noah Huppert
  • 4,028
  • 6
  • 36
  • 58
3
votes
0 answers

Zuul not passing the Content-Type to the service

I have Zuul as an API Gateway so it has all the mappings for all the services. We have custom error messages for exception Handling in all the different services. Content-Type:application/j The problem that I am having is If i have the Content-Type…
3
votes
1 answer

Clojure name binding to REST JSON data

I'm a Frontend Engineer, our team is switching many of our old services to micro services written in clojure. The main issue I'm seeing is that clojure naming conventions prefer hyphens to-separate-words in variable names. This means if you…
Chris Stephens
  • 2,164
  • 2
  • 17
  • 21
3
votes
1 answer

call a docker container from another container

I have deployed two docker containers which hosts two REST services deployed in Jetty. Container 1 hosts service 1 and it Listens to 7070 Container 2 hosts service 2 and it Listens to…
Karthick R
  • 599
  • 9
  • 25
3
votes
2 answers

Microservice with own UI with Spring and Thymleaf

I have three web application microservices and one gateway that include the UI. So, what i want to do is to change the app's that every microservice has his own UI and the gateway should make server side includes. Im using Thymeleaf as template…
Markus Streicher
  • 133
  • 1
  • 1
  • 10
3
votes
3 answers

Eureka registration of Https micro services

Eureka does not recognized HTTPS endpoints like '/info' and '/health' and always points to HTTP endpoints after enabling HTTPS. How to enable HTTPS micro-service url registration at Eureka ?
Upul Doluweera
  • 2,146
  • 1
  • 23
  • 28
3
votes
1 answer

How to make available the identity of a user across multiple microservices?

So let's take the basic e-commerce microservices. Identity and access . This microservice will take care of user accounts, roles and authentication. The authentication method will be the based on the usual token based flow (user enters username +…
Geo C.
  • 755
  • 6
  • 18
3
votes
1 answer

How to handle shared datasources using microservices architecture

I have couple of services in my microservice architecture. Two of the service(Service A, Service B) got different api's and provide different domain logic. However they do share some logic that should be returned - user-state from Redis. When user…
rayman
  • 20,786
  • 45
  • 148
  • 246
3
votes
1 answer

Spring Boot project setup design decisions

We will be using Spring Boot to create services. Our initial idea would be that each service (not necessarily microservice) would be self-contained, and deployed as a .jar file. Maven for build. I'm wondering what would be a good Spring Boot project…
user1340582
  • 19,151
  • 35
  • 115
  • 171
3
votes
3 answers

microservices & service discovery with random ports

My question is related to microservices & service discovery of a service which is spread between several hosts. The setup is as follows: 2 docker hosts (host A & host B) a Consul server (service discovery) Let’s say that I have 2 services:…
royeectu
  • 31
  • 2
3
votes
2 answers

Implications of implementing a microservice architecture

I'm starting out on the journey of learning/implementing microservice architecture for the first time and I have some questions related to the implications that has. For some background, the techstack I intend on using is in a very over-arching…
3
votes
0 answers

Store private keys with ionic

Im using ionic to create a hybrid mobile app, this app will use a micro service architecture as the backend and i want to assure that only my app will be able to reach the microservices. So i came up with a simple solution: Encripting all the params…
nastrand
  • 131
  • 1
  • 14
3
votes
2 answers

Azure Service Fabric actor microservice

Microsoft is offering a microservice solution for it's cloud platform Azure. There are two frameworks - reliable services and reliable actors. I was wondering if a reliable actor is an independently microservice? Or form multiple actors together a…
CPA
  • 2,923
  • 4
  • 30
  • 52
1 2 3
99
100