Skip to main content
Redhat Developers  Logo
  • Products

    Platforms

    • Red Hat Enterprise Linux
      Red Hat Enterprise Linux Icon
    • Red Hat AI
      Red Hat AI
    • Red Hat OpenShift
      Openshift icon
    • Red Hat Ansible Automation Platform
      Ansible icon
    • View All Red Hat Products

    Featured

    • Red Hat build of OpenJDK
    • Red Hat Developer Hub
    • Red Hat JBoss Enterprise Application Platform
    • Red Hat OpenShift Dev Spaces
    • Red Hat OpenShift Local
    • Red Hat Developer Sandbox

      Try Red Hat products and technologies without setup or configuration fees for 30 days with this shared Openshift and Kubernetes cluster.
    • Try at no cost
  • Technologies

    Featured

    • AI/ML
      AI/ML Icon
    • Linux
      Linux Icon
    • Kubernetes
      Cloud icon
    • Automation
      Automation Icon showing arrows moving in a circle around a gear
    • View All Technologies
    • Programming Languages & Frameworks

      • Java
      • Python
      • JavaScript
    • System Design & Architecture

      • Red Hat architecture and design patterns
      • Microservices
      • Event-Driven Architecture
      • Databases
    • Developer Productivity

      • Developer productivity
      • Developer Tools
      • GitOps
    • Automated Data Processing

      • AI/ML
      • Data Science
      • Apache Kafka on Kubernetes
    • Platform Engineering

      • DevOps
      • DevSecOps
      • Ansible automation for applications and services
    • Secure Development & Architectures

      • Security
      • Secure coding
  • Learn

    Featured

    • Kubernetes & Cloud Native
      Openshift icon
    • Linux
      Rhel icon
    • Automation
      Ansible cloud icon
    • AI/ML
      AI/ML Icon
    • View All Learning Resources

    E-Books

    • GitOps Cookbook
    • Podman in Action
    • Kubernetes Operators
    • The Path to GitOps
    • View All E-books

    Cheat Sheets

    • Linux Commands
    • Bash Commands
    • Git
    • systemd Commands
    • View All Cheat Sheets

    Documentation

    • Product Documentation
    • API Catalog
    • Legacy Documentation
  • Developer Sandbox

    Developer Sandbox

    • Access Red Hat’s products and technologies without setup or configuration, and start developing quicker than ever before with our new, no-cost sandbox environments.
    • Explore Developer Sandbox

    Featured Developer Sandbox activities

    • Get started with your Developer Sandbox
    • OpenShift virtualization and application modernization using the Developer Sandbox
    • Explore all Developer Sandbox activities

    Ready to start developing apps?

    • Try at no cost
  • Blog
  • Events
  • Videos

Developing applications with microservices

June 14, 2021
Max Shapiro Pooja Mistry
Related topics:
ContainersKubernetesMicroservices
Related products:
Red Hat OpenShift

Share:

    The microservice architectural style structures an application as a collection of services. These services are often large, monolithic applications that are broken into smaller services. Additionally, microservices are:

    • Highly maintainable and testable.
    • Loosely coupled.
    • Independently deployable.
    • Organized around business capabilities.
    • Typically owned by a small team, which enables the rapid, frequent, and reliable delivery of large, complex applications and lets organizations evolve their technology stacks.

    In this article, we discuss the advantages of the microservice architecture and look at a travel booking application that illustrates how to develop applications using various microservices.

    Note: If you like the discussion in this article, check out the Bee Travels session at Red Hat Summit, where we'll dive into developing and deploying microservices using Bee Travels.

    Why develop with microservices?

    There are many benefits to developing applications with microservices:

    • They act independently. Microservices are applications that are separated into a collection of small, independently deployable services. Because microservices are designed to act independently, they are naturally consistent with agile principles that promote end-to-end team ownership.
    • They simplify deployment. Each microservice is built and aligned around a feature to reduce the complexity of the application change-management process. Because each service is individually changed, tested, and deployed without affecting other services, deployment is accelerated.
    • They improve application quality. Because microservices enable a "divide-and-conquer" approach, both functional and performance testing are easier with microservices than they are with monolithic applications. Microservices architecture lends itself to test-driven development, as components can be tested in isolation and combined with a full or virtualized set of microservices. This approach results in overall improvement in application quality.
    • They're easier to scale. Teams can more efficiently scale applications by scaling individual services based on how critical they are to the overall application, throughput, memory, and CPU load.

    Now that we've explored the overall concept of microservices and their advantages, let's dive into a sample application that uses them!

    Microservices in action: The Bee Travels application

    Bee Travels is a sample travel booking application composed of several microservices. These microservices can be run independently or together to form the full service. Users can search for and book hotels, flights, and car rentals for various destinations across the world (see Figure 1).

    Bee Travels UI
    Figure 1: The Bee Travels user interface.

    The purpose of Bee Travels is to demonstrate how to develop applications using various microservices, as well as key capabilities of Kubernetes, Red Hat OpenShift, and many other cloud-native technologies.

    The project showcases best practices in the software development life cycle, spanning the full developer experience. It uses widely used open source technologies and is written in recommended coding languages including Node, Python, Rust, Go, and Java.

    Bee Travels application architecture

    Bee Travels is composed of the following microservices:

    • UI front end
    • UI back end
    • Destination
    • Hotel
    • Car rental
    • Flight
    • Currency exchange
    • Checkout
    • Payment
    • Email

    The application was built in iterations, resulting in different versions of the microservices being constructed. Figure 2 is a basic architecture diagram for the containerized version 1 of Bee Travels, which includes key features such as:

    • Searching for hotels, car rentals, and flights for a given destination.
    • Reading data from local JSON files.
    • RESTful API calls between microservices.
    Bee Travels version 1 architecture: When a user interacts with the UI, the UI makes RESTful API call to get destination data from the destination service, itinerary data from the hotel, car rental, and flight services, and currency exchange data from the currency service.
    Figure 2: Bee Travels Version 1 architecture.

    Version 2 features include reading data from databases and building out a payment structure for a travel itinerary. Version 3 will include chatbots, user accounts, recommendations, and Kafka message queues.

    Given its architecture and the fact that it is a polyglot application, Bee Travels offers the flexibility to "choose your own adventure"—that is, you can decide for yourself how you want to build and deploy it. This flexibility extends to the following:

    • Microservices: Whether you want to run all the microservices or only some of them is up to you. Note that certain services can be dependent on others.
    • Service versions: Because Bee Travels was built with iterations of different versions of each service, you can choose which version of each service you want to run.
    • Programming languages: Choose to run the microservices in one language or as a polyglot with multiple languages such as Node.js, Python, Java, Go, and Rust.
    • Databases: Some services require a data source. Depending on the microservice, this can include local JSON files, MongoDB, CouchDB, Cloudant, PostgreSQL, and JanusGraph.
    • Deployment: When deploying Bee Travels, you have options to use Kubernetes, Red Hat OpenShift, Red Hat OpenShift Container Platform on the LinuxONE Community Cloud, Istio, Knative, and Helm charts.

    Conclusion

    To learn more about Bee Travels, visit the following links:

    • Learn more about the Bee Travels project at https://bee-travels.github.io, where you can play around with a live demo of the application and read through the documentation.
    • Explore Bee Travels content on IBM Developer, including code patterns, articles, and videos.
    • Delve into the Bee Travels repository on GitHub.
    • Check out the on-demand Bee Travels session at Red Hat Summit for more about developing and deploying microservices using Bee Travels.
    Last updated: August 15, 2022

    Related Posts

    • Authorizing multi-language microservices with Louketo Proxy

    • Achieving polyglot persistence with RHEL

    Recent Posts

    • Staying ahead of artificial intelligence threats

    • Strengthen privacy and security with encrypted DNS in RHEL

    • How to enable Ansible Lightspeed intelligent assistant

    • Why some agentic AI developers are moving code from Python to Rust

    • Confidential VMs: The core of confidential containers

    Red Hat Developers logo LinkedIn YouTube Twitter Facebook

    Products

    • Red Hat Enterprise Linux
    • Red Hat OpenShift
    • Red Hat Ansible Automation Platform

    Build

    • Developer Sandbox
    • Developer Tools
    • Interactive Tutorials
    • API Catalog

    Quicklinks

    • Learning Resources
    • E-books
    • Cheat Sheets
    • Blog
    • Events
    • Newsletter

    Communicate

    • About us
    • Contact sales
    • Find a partner
    • Report a website issue
    • Site Status Dashboard
    • Report a security problem

    RED HAT DEVELOPER

    Build here. Go anywhere.

    We serve the builders. The problem solvers who create careers with code.

    Join us if you’re a developer, software engineer, web designer, front-end designer, UX designer, computer scientist, architect, tester, product manager, project manager or team lead.

    Sign me up

    Red Hat legal and privacy links

    • About Red Hat
    • Jobs
    • Events
    • Locations
    • Contact Red Hat
    • Red Hat Blog
    • Inclusion at Red Hat
    • Cool Stuff Store
    • Red Hat Summit
    © 2025 Red Hat

    Red Hat legal and privacy links

    • Privacy statement
    • Terms of use
    • All policies and guidelines
    • Digital accessibility

    Report a website issue