Coder Social home page Coder Social logo

temporal-demo's Introduction

Getting Started

Temporal

  • Start Temporal cluster using Docker: cd temporal-docker then docker-compose up.
  • Default Temporal Engine Server will be run at the address localhost:7233.
  • Go to http://localhost:8088/ to monitor the Temporal Workflows and histories.

App Structure + Services

  • ExampleWorkflow, ExampleWorkflowImpl: the Workflow definition and its logical implementation.
  • TemporalWorkflowProcess: the Workflow Process, will be used to run all the logic of ExampleWorkflow.
  • TemporalWorkerOne, TemporalWorkerTwo: 2 Workers of ExampleWorkflow, will be used to run a specific action, defined by ExampleWorkflowImpl.
  • TemporaldemoApplication: the SpringBoot Web Application that will be used as the Controller for the Workflow. We can Start, trigger Signal, do Query on the workflow

Run the TemporaldemoApplication

All actions can be done by a GET request to the following URL:

  • GET http://localhost:8080/testing/start: Start the Workflow
  • GET http://localhost:8080/testing/trigger: Trigger the Signal to workflow for inputting 13 Greeting's name to the running workflow
  • GET http://localhost:8080/testing/get: Send a Query to workflow and get back the current Greetings name inside the Workflow.
  • GET http://localhost:8080/testing/bye: Trigger the Signal to end the waiting, then Complete the Workflow.

Monitoring

  • Each Services will have their own Console to display all the logging when running.
  • Temporal can be monitor by the application http://localhost:8088/.

That's all..!!

temporal-demo's People

Stargazers

 avatar

Watchers

Nha Q Nguyen 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.