Skip to main content
Redhat Developers  Logo
  • AI

    Get started with AI

    • Red Hat AI
      Accelerate the development and deployment of enterprise AI solutions.
    • AI learning hub
      Explore learning materials and tools, organized by task.
    • AI interactive demos
      Click through scenarios with Red Hat AI, including training LLMs and more.
    • AI/ML learning paths
      Expand your OpenShift AI knowledge using these learning resources.
    • AI quickstarts
      Focused AI use cases designed for fast deployment on Red Hat AI platforms.
    • No-cost AI training
      Foundational Red Hat AI training.

    Featured resources

    • OpenShift AI learning
    • Open source AI for developers
    • AI product application development
    • Open source-powered AI/ML for hybrid cloud
    • AI and Node.js cheat sheet

    Red Hat AI Factory with NVIDIA

    • Red Hat AI Factory with NVIDIA is a co-engineered, enterprise-grade AI solution for building, deploying, and managing AI at scale across hybrid cloud environments.
    • Explore the solution
  • Learn

    Self-guided

    • Documentation
      Find answers, get step-by-step guidance, and learn how to use Red Hat products.
    • Learning paths
      Explore curated walkthroughs for common development tasks.
    • Guided learning
      Receive custom learning paths powered by our AI assistant.
    • See all learning

    Hands-on

    • Developer Sandbox
      Spin up Red Hat's products and technologies without setup or configuration.
    • Interactive labs
      Learn by doing in these hands-on, browser-based experiences.
    • Interactive demos
      Click through product features in these guided tours.

    Browse by topic

    • AI/ML
    • Automation
    • Java
    • Kubernetes
    • Linux
    • See all topics

    Training & certifications

    • Courses and exams
    • Certifications
    • Skills assessments
    • Red Hat Academy
    • Learning subscription
    • Explore training
  • Build

    Get started

    • Red Hat build of Podman Desktop
      A downloadable, local development hub to experiment with our products and builds.
    • Developer Sandbox
      Spin up Red Hat's products and technologies without setup or configuration.

    Download products

    • Access product downloads to start building and testing right away.
    • Red Hat Enterprise Linux
    • Red Hat AI
    • Red Hat OpenShift
    • Red Hat Ansible Automation Platform
    • See all products

    Featured

    • Red Hat build of OpenJDK
    • Red Hat JBoss Enterprise Application Platform
    • Red Hat OpenShift Dev Spaces
    • Red Hat Developer Toolset

    References

    • E-books
    • Documentation
    • Cheat sheets
    • Architecture center
  • Community

    Get involved

    • Events
    • Live AI events
    • Red Hat Summit
    • Red Hat Accelerators
    • Community discussions

    Follow along

    • Articles & blogs
    • Developer newsletter
    • Videos
    • Github

    Get help

    • Customer service
    • Customer support
    • Regional contacts
    • Find a partner

    Join the Red Hat Developer program

    • Download Red Hat products and project builds, access support documentation, learning content, and more.
    • Explore the benefits

Developing applications with microservices

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

    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

    • Protect data offloaded to GPU-accelerated environments with OpenShift sandboxed containers

    • Case study: Measuring energy efficiency on the x64 platform

    • How to prevent AI inference stack silent failures

    • Preventing GPU waste: A guide to JIT checkpointing with Kubeflow Trainer on OpenShift AI

    • How to manage TLS certificates used by OpenShift GitOps operator

    Red Hat Developers logo LinkedIn YouTube Twitter Facebook

    Platforms

    • Red Hat AI
    • Red Hat Enterprise Linux
    • Red Hat OpenShift
    • Red Hat Ansible Automation Platform
    • See all products

    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
    © 2026 Red Hat

    Red Hat legal and privacy links

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

    Chat Support

    Please log in with your Red Hat account to access chat support.