I'm new to Azure and its services and I'm trying to sort out the differences. If one wants to deploy a Spring Boot app on Azure can this be done without using Azure Spring Cloud? Also, can Azure functions be integrated only with Azure Spring Cloud?
Here are the documentation pages for both:
Spring on Azure
Azure Spring Cloud
Spring on Azure provides solution for integration with Azure Services such as Active Directory. It has nothing common with Spring Cloud project and is not targeted to the microservice architecture only.
Azure Spring Cloud is a project that enables easy deployment of Spring Cloud based microservice applications to Azure while keeping the implementation platform agnostic. On top of that it offers solutions of components what is the microservice architecture about such as service discovery and registry, configuration management etc.
Related
I'm creating my service in Google Cloud platform Kubernetes cluster, it is a simple application that has two endpoints one is public another is secured. For authentication, I use Cloud Identity. Cloud identity is using Firebase under the hood and JWT token has some attributes such as name which in my case is "firebase" and audiences which corresponds to my project id.
For AppEngine app I can use cloud endpoints and it verifies JWT, but what I should use when deploying app to Kubernetes ? I saw that one option is Istio are there more options ?
You can use Cloud Endpoint with GKE.
Check this official tutorial : Getting started with Cloud Endpoints on GKE, it may help you.
For your information, you can also consider Cloud Run as a fully serverless alternative. It provides a built-in authentication layer.
With the goal of building multiple microservices that are fault tolerant and resilient:
Microservices are currently being built using Spring Boot
What are the key differences between WSO2 API Manager and Spring Cloud ?
Using different components of Spring Cloud can one build a comparable solution akin to WSO2 API manager or general API manger ? If so what would be the components of Spring Cloud one could use ?
Can one mix and match components of Spring Cloud with WSO2 API manager ? How compatible is WSO2 API manager with Spring Cloud ?
For example: Use the load balancer(Ribbon) and Service Discovery(Eureka) of Spring Cloud and then also use Security and the analytic components of WS02
I have an application based on microservices which communicate to each other via queues and topics. Each microservice is built using Spring Integration with XML configurations.
Is there a tool/framework that I could use to automatically generate diagram for the whole application, which would ideally show Spring Integration details for each microservice and as well the connection (via queues/topics) between the microservices?
Each application can be visualized using the spring integration runtime graph together with a viewer application.
See the file-split-ftp sample for an example. The viewer mentioned on the README page is in the the angular 1.x branch of the referenced spring-flo project.
Also see Tim Ysewyn's blog post here "VISUALIZING YOUR SPRING INTEGRATION COMPONENTS & FLOWS".
If you create your microservices using Spring Cloud Stream and deploy/orchestrate them using Spring Cloud Dataflow, you can visualize them at a higher level; examples are in the reference manual.
After reading the following post I have a few questions:
https://spring.io/blog/2014/08/05/extending-spring-cloud
Imagine that I have implemented my own Spring Cloud (Cloud Platform Extensibility), and after testing in my local machine I want to deploy in different environments.
Assume that:
My environments have a Docker installation.
I do not want to install the Cloud Foundry architecture in them.
My questions are:
What are the requirements for the different environment to work with my own Spring Cloud? i.e. must I install Spring Cloud Foundry architecture in all the environment machines?
Is Spring Cloud Foundry archictecture compulsory though I have implemented my custom Spring Cloud?
Must I use commands like "cf" to upload and deploy the services?
Many thanks.
Regards,
Paco.
That is an old blog post and I feel it doesn't accurately describe Spring Cloud as it stands today. It refers to the since renamed Spring Cloud Connectors project.
Spring Cloud, built on top of Spring Boot, provides developers an easy way of building "cloud native" and "12 factor" applications. That essentially boils down to the common patterns found in modern applications such as centralized configuration, service discovery, circuit breakers, etc. This is cloud agnostic and works well in a variety of environments including AWS and GCP.
So no, Spring Cloud isn't really directly related to Cloud Foundry, however it works nicely there as it does many other places.
You probably solved your problem, but in case not and for the sake of others i'll post an answer. You can deploy a spring cloud application on docker swarm using docker compose v3 . As shown in this repository , the command docker stack deploy -f all-in-one.yml springcloud deploys the resource specified in all-in-one.yml on docker swarm. You can take a look at how docker stack works in this documentation.
I am having a java app which I am planning to migrate to Pivotal Cloud Foundry. The application uses JMX to change of the properties at runtime. Is it possible to retain the same architecture when I migrate the app to PCF or should I explore a different approach?
are you using Spring Boot in your Java app? If so, you can use JMX features with Actuator. Jolokia helps you to do this via JMX over HTTP.
Please refer: Spring Boot JMX Management
If this is a traditional Java App, you have pushed into PCF, you can use Java build pack features to enable JMX.
Please refer: Enable JMX port via Java Build Pack
Please try and let us know how it goes.
For a PCF app, the cloud environment should provide dependencies needed for your app. You can inject these dependencies for runtime in various ways, for instance, provide environment settings.
If you need say credentials at runtime, you can look at Spring Cloud Services, and the Config server. If you are looking for other services, you can use Service registry and discovery (based on Netflix Eureka component) within Spring Cloud Services.
It all depends on your use case.
Can you elaborate more on "change properties at runtime"?