Giter Club home page Giter Club logo

quarkus-temporal-trip-booking's Introduction

Trip Booking Demo using Temporal and Quarkus

Triporal Project Goals

  1. Create a demo application (called Triporal) for booking a trip
  2. Implement a saga that calls microservices
  3. Build with Temporal and Quarkus in Java
  4. Support native executables with Quarkus and GraalVM
  5. Create a basic user interface to drive the demo

Code used in this demo is derived from the original Temporal booking saga demo https://github.com/temporalio/samples-java/tree/master/src/main/java/io/temporal/samples/bookingsaga.

Triporal Project Rationale

This project is a proof of concept on how Temporal can be used with Quarkus in an effective way.

Temporal is forked from the original Cadence project, and offers many features for building distrubuted applications using a workflow API. Because Temporal has a Java API, it's a good pairing with Quarkus for building reliable applications with Java microservices.

Here is the original description of Temporal:

Temporal is a microservice orchestration platform which enables developers to build scalable applications without sacrificing productivity or reliability. Temporal server executes units of application logic, Workflows, in a resilient manner that automatically handles intermittent failures, and retries failed operations.

Running Temporal Locally with Docker

Please see https://github.com/temporalio/docker-compose

docker-compose up

Running Triporal Application Locally with Quarkus

For purely development purposes, you should run ./mvnw quarkus:dev for each of the 4 underlying projects. The ports have been preconfigured for development mode:

Building Triporal Application Native Image

Important: This project currently requires a custom build of Temporal to enable Native Image in Quarkus!

Please see the official docs: https://quarkus.io/guides/building-native-image

You should run for each of the underlying projects:

With GraalVM Locally Installed

./mvnw clean install -Pnative

With GraalVM in Docker

This will produce a Linux executable and a container that can be run locally in Docker:

./mvnw clean install -Pnative -Dquarkus.native.container-build=true -Dquarkus.container-image.build=true

quarkus-temporal-trip-booking's People

Contributors

murphye avatar philipz avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.