fiyuang / hacktiv8-workshop-go-concurrency

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool


Go Concurrency (Hacktiv8 Workshop)

Description

A simple update stock demo with goroutine, sync.Mutex, sync.Waitgroup implementation

Tech Used

GO

Getting Start:

Before you running the program, make sure you've run this command:

  • go mod tidy

Run the program

  • go run main.go
  • go run -race main.go for build-in race detector

The program will run on http://localhost:9090

API Route List

Method URL Description
GET localhost:9090/update-stock Update Stock Demo
GET localhost:9090/update-stock-race Update Stock Demo with Race Condition Example

About


Languages

Language:Go 100.0%