Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

github.com/sachinsu/temporalevaluation

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/sachinsu/temporalevaluation

  • v0.0.0-20201209055239-3fc1fbd57c2a
  • Source
  • Go
  • Socket score

Version published
Created
Source

Using Temporal.io for Workflow Orchestration

This is source code for the article Evaluating Temporal for Workflow Orchestration.

Prerequisites/Setup

  • MySQL 5.7 or above
    • if running within Docker then,
      • Run docker run -p 3307:3306 --name=mysqldb -e MYSQL_ROOT_PASSWORD=passwd -d mysql:5.7
      • Access db using docker exec -it mysqldb bash && mysql -u root -p
      • Create database using create database temporaldb on mysql CLI
  • Temporal
    • Follow the instructions provided here to start Temporal server in Docker.
  • Install Go 1.15 or above
  • From root folder of repository,
    • Start Worker using go run worker\main.go
    • Start workflow using go run start\main.go
    • Start HTTP Service using go run service\server.go
    • As such workflow imports dummy set of users defined in shared.go.
      • Check for list of unapproved users at http://localhost:8080/Users
      • Simulate user approval by post Ids using CURL or any other http tool. Using Curl curl -X POST -d 'id\n1\2\n' https://localhost:8080/Users
      • Revisit Users URL to verify that users are approved (i.e. Users with ID 1 and 2 are approved.)
    • Check the Temporal Web UI for details on workflow execution at `http://localhost:8088' (Replace localhost with Docker IP if needed)

FAQs

Package last updated on 09 Dec 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc