Development of spring boot microservice using spring cloud [closed] - spring

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 4 years ago.
Improve this question
I am trying to develop a microservices using spring mvc and spring boot with using spring cloud tools and services. And i am planning to deploy my spring cloud microservices in elastic beanstalk. So I have a doubt in deployment process.
Whether I need to use any container service for deployment into elastic beanstalk? When I exploring i found that writings about containers in cloud foundry. So i felt confusion that need I deploy any container services into elastic beanstalk or need to include container service dependency file when developing service??

You can use AWS Elastic Beanstalk(EB) or EC2 Container Service(ECS).
If you want to control your scaling and capacity use ECS, ECS will give you control, as you have to specify the size and number of nodes in the cluster and whether or not auto-scaling should be used.
If you want to focus on the app and not much on DevOps use Elastic Beanstalk. For Elastic Beanstalk just provide a Dockerfile and EB takes care of scaling your provisioning of number and size of nodes, you basically can forget about the infrastructure with the EB route.

Related

How do people host Spring Boot apps with WebFlux on Reactor Netty in production?

I know it's a vague question but that's because I am not clear enough on what people are doing to ask anything more specific. I currently run my own apps with the embedded reactor netty server for development and basically push the embedded server inside a jar to cloud foundry to run the embedded server in production.
What are the other ways out there to set up a production environment for reactive reactor netty apps that people are using, or any documentation you might have seen?
I'm no sure that there is any difference between hosting the reactive spring-webflux application and regular applications.
Spring boot creates a jar with everything bundled inside (netty or more old-school tomcat) - it doesn't matter.
Then you can take this and run it "as is" on your server (on-premise, cloud ec2 style whatever you have, this really depends on your organization) directly with java -jar app.jar
Or, if you have more advanced needs/setup:
"Containerize" the application and create a docker (usually, although there are alternatives) image that runs the spring boot application. and then deploy it on kubernetes cluster, for example. At this point you should really consult with your DevOps people so that they'll tell you what is the way of deployment in your organization.
Besides kubernetes cluster there are many other alternatives:
- cloud provider specific solutions, like ECS or Fargate in amazon AWS
- Docker Swarm to name a few
All these solutions are pretty advanced, allow auto-scaling, advanced liveness monitoring and so forth. As an organization you usually pick the one that meets your needs

If I am deploying a spring boot application to google cloud should I use app engine or compute engine [duplicate]

This question already has answers here:
What is the difference between Google App Engine and Google Compute Engine?
(12 answers)
Closed 3 years ago.
I am looking to deploy a spring boot REST web application to google cloud.
I see examples of deploying a spring boot app to both compute engine and app engine.
What are the benefits of each in my scenario?
app engine will be better option. It will provide all the required things like automatically scaling. If you using computer engine then yourself you need to make platform ready. like to need to install java and required environment.

Usage of Zuul and Gateway [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
I'm creating a microservice architecture demo application.
I got a doubt that, do we need both Zuul and API-Gateway?
What is not possible in Zuul and API-Gateway so that we need both?
Please suggest.
Zuul brings along the capabilities of a gateway (or API-gateway). As stated in the documentation:
Zuul is a JVM-based router and server-side load balancer from Netflix
It is well integrated in the sping-boot cloud project and can be used as router and load balancer. This are the core features of a gateway. Thus I would not double this function and stick to Zuul here.
Also I want to point out, that there are a lot of similar API-gateway solutions that can be used in the context of a spring-boot application. Here you can find an article explaining and comparing them. The three products mentioned there are:
NGINX
Zuul
Spring Cloud Gateway

Creating a Spring Cloud microservice

I am trying to learn and create a microservice using Spring Cloud. I am using Spring mvc and Spring Boot for development. I added separate Spring Boot application for both Eureka server and Zuul client. I have three Spring Boot application now. One Sureka server, one for Zuul routing and third one is for my microservice application. I run the Eureka server and the microservice and Zuul found to be running properly in Eureka server UI.
My doubt is that, I am planned to use routing and service discovery in my microservice. So I have a total of three Spring Boot applications. Can I deploy these three applications into AWS Elastic Beanstalk?
When I exploring I found that Pivotal Cloud Foundry topic. Since I am planing to use AWS Elastic Beanstalk. So what is the role of Pivotal Cloud Foundry in my application?
I am still confused about microservice development using Spring Cloud.
So there are two elements in your confusion. Is Amazon Beanstalk suitable?
So answer is yes. but you have overhead of orchestrating various services of amazon over then. Basically Amazon Elastic Beanstalk is more form based which means you need to tell what exactly you want to do with application for example route setup , scaling mechanism , application portability, application health management , Integration with external log aggregators etc. This is big learning curve to many people (including me :) ). Where as these with PCF these things are easy and straightforward and sometimes implicitly done.
Now Can I use pivotal cloud foundry with amazon? answer will be absolutely yes.
Pivotal cloud foundry is Wrapper written over open source Cloud Foundry project.
It is more succinct PaaS option than Amazon Beanstalk. You can host PCF on amazon ec2 ( IaaS )boxes using BOSH software. To answer you PCF is a alternative to Amazon Beanstalk. You don't need PCF is you want to use Amazon Beanstalk and vice versa.

How to achieve orchestration with spring boot micro service? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 5 years ago.
Improve this question
what is best way to orchestrate micro services in spring boot.
You have many options but I will list 3 of them that I would choose from:
Directly call the other microservice using REST calls (hard code the URL in a property file or create a service for inter service communication).
Setup microservice architecture with spring-cloud and netflix OSS
Setup microservice architecture with spring-cloud and kubernetes

Resources