FAQ Database Discussion Community


How do I create a delegating Angular multi host site?

angularjs,rest,proxy,delegation,microservices
I work in an environment where we develop a solution using several (a lot of) servers. They microservice style is the role model. To be able to upgrade systems they must be switchable/replaceable (including the user interface) in runtime. The principal solution that have been decided upon is that a...

Using Amazon SQS with multiple consumers

amazon-web-services,amazon-sqs,microservices,event-based-programming
I have a service-based application that uses Amazon SQS with multiple queues and multiple consumers. I am doing this so that I can implement an event-based architecture and decouple all the services, where the different services react to changes in state of other systems. For example: Registration Service: Emits event...

How to deploy SpringBoot Maven application with Jenkins ?

maven,tomcat,jenkins,spring-boot,microservices
I have a Spring Boot application which runs on embedded Tomcat servlet container mvn spring-boot:run . And I don’t want to deploy the project as separate war to standalone Tomcat. Whenever I push code to BitBucket/Github, a hook runs and triggers Jenkins job (runs on Amazon EC2) to deploy the...

Microservices and cloud resource limitations

amazon-web-services,amazon-ec2,spring-cloud,microservices,amazon-elastic-beanstalk
I am at the beginning of a large migration from a single monolithic web service to a collection of microservices using Spring Cloud/Spring Cloud Netflix. Through my research of microservices I understand that the lines of demarcation between services should mirror the separations of concerns between them. An additional factor...

Micro Service cross service dependencies

architecture,microservices
Just to simplify my situation I currently have 3 micro services. Authentication Locations Inventory The authentication service authenticates the user and sends back a JWT access token and I use that across the other services. Its stateless and all works well. I setup locations among some other things in the...

What information should be sent on body?

rest,microservices,trust
I've been reading about microservices and I have some doubts about what's the data that should be sent on the body, and what's the data that should be populated in the server (by means of an id). For example, imagine that we have a real estate agency, and the domain...

Should I use forever/pm2 within a (Docker) container?

node.js,docker,coreos,microservices
I am refactoring a couple of node.js services. All of them used to start with forever on virtual servers, if the process crashed they just relaunch. Now, moving to containerised and state-less application structures, I think the process should exit and the container should be restarted on a failure. Is...

Is the Microservices architectural Pattern similar to EJB 1.0?

ejb,components,microservices
What we see with microservices is an isolated component, communicating over a protocol over the wire to a parent consumer of that component. We see a very similar pattern with EJB 1.0. My question is: Is the Microservices architectural Pattern similar to EJB 1.0?...

What are the practical disadvantages of using strongly typed data interchange format (eg thrift / capn proto) in a microservices context?

json,serialization,thrift,microservices,data-interchange
I'm thinking of introducing a strongly typed (read - with predefined schema) data interchange format for communication between our internal services. For example, I guess something like Thrift or Cap'n Proto. At least two obvious advantages (to me) of using this over something like JSON is that you would KNOW...

How can microservices be truly independent when using an ESB (i.e. MassTransit)?

c#,esb,servicebus,masstransit,microservices
I'm doing some initial investigation into decomposing a current monolithic system by using MassTransit. My main reason for going with a queue-based ESB is that the set of features I'm tackling first are using a shared database as, essentially, a queue. I've also been reading "Building Microservices" and while I...

How to call a microservice in .NET

c#,.net,rest,asp.net-web-api,microservices
I've created a very simple REST microservice that receives information about an email and sends it. The microservice send method looks something like this: //EmailController [HttpPost] public IHttpActionResult Send(Email email) { // send email via exchange } Now in my application, I call it using RestSharp like this: var client...

Design approach for hosting multiple microservices on the same host [closed]

ruby,web-applications,docker,unix-socket,microservices
I'm working on a Web application that I decoupled it in multiple containerized microservices. I have now around 20 services, but the whole system will definitely need more than 300. Most of the services now and some in the future will not need an entire machine so I'll deploy multiple...

What is a good practice to promote a microservice to a public API?

design,architecture,microservices
Microservices seem to be a very good fit for my software after watching and reading number of articles from Martin Fowler, Sam Newman, Adrian Cockcroft and Sudhir Tones. However, when thinking deeper into the implementation, there are number of concerns: My software has an UI, let's call it a web-based...

Spray microservice assembly deduplicate

scala,sbt,akka,spray,microservices
I'm using this template to develop a microservice: http://www.typesafe.com/activator/template/activator-service-container-tutorial My sbt file is like this: import sbt._ import Keys._ name := "activator-service-container-tutorial" version := "1.0.1" scalaVersion := "2.11.6" crossScalaVersions := Seq("2.10.5", "2.11.6") resolvers += "Scalaz Bintray Repo" at "https://dl.bintray.com/scalaz/releases" libraryDependencies ++= { val containerVersion = "1.0.1" val configVersion = "1.2.1"...

Where does Elixir/erlang fit into the microservices approach? [closed]

architecture,erlang,docker,elixir,microservices
Lately I've been doing some experiments with docker compose in order to deploy multiple collaborating microservices. I can see the many benefits that microservices provide, and now that there is a good toolset for managing them, I think that it's not extremely hard to jump into the microservices wagon. But,...