• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

Spring Microservices in Action: benefits of using Spring Cloud

 
Greenhorn
Posts: 3
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi John,

Congrats for the book. From the TOC,  I saw that you covered Spring Microservices using Spring Cloud. What are some benefits of using Spring Cloud vs Other similar technologies (Apache Kafka, rabbitMQ, Camunda )  for microservice orchestration? Basically, why the Spring Cloud when using the microservice architecture?

Thank you!

 
Author
Posts: 93
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Afrim,

Spring Cloud offers much of the operational functionality you need for when you are building a microservices based application?   (e.g. Config management, service discovery, intelligent routing, log aggregation and correlation)?  You can use Spring Cloud Stream to do event-based microservices.  Chapter 8 in the book actually demonstrates some simple event processing using Kafka and Spring Cloud Stream.  Too me Kafka, RabbitMQ, etc... are really message backbones for publishing messages to services.  I think Spring Cloud works really well when you are building Spring Applications in an internal data center or where you are going to be deploying your services to Docker containers that are not managed in something like a Kubernetes cluster. Also, if you plan on using the Pivotal Cloud (e.g. Cloud Foundry), many of the Spring Cloud services outlined in the book are available inside of cloud foundry.

Frankly, there is a lot of overlap between Spring Cloud and Kubernetes.  If you are planning on running your Spring services in Kubernetes, you might want step back from Spring Cloud and take advantage of whats in Kubernetes.  Kubernetes offers service discovery, logging, security, configuration management, etc...   However, if you use something like Kubernetes things like Spring Cloud Stream and Spring Cloud/Hysterix are not part of the Kubernetes stack.

  Thanks,
      John
 
She's out of the country right now, toppling an unauthorized dictatorship. Please leave a message with this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic