paint-brush
Using Channels as Futures in Golangby@tejasmanohar
5,626 reads
5,626 reads

Using Channels as Futures in Golang

by Tejas Manohar2mFebruary 3rd, 2017
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

Recently, I built a lightweight task scheduler on top of <a href="https://aws.amazon.com/ecs/" target="_blank">AWS ECS</a> in Go. The application schedules batch jobs with custom arguments and schedules as single containers via AWS ECS, an orchestrator built on top of EC2 and Docker. One of the key requirements of the scheduler is monitoring the status of actively running tasks. For this, I chose to use AWS ECS’s <a href="http://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_DescribeTasks.html" target="_blank">DescribeTasks</a> endpoint, which takes ECS task ID(s) and returns their status, exit code if complete, reason for stopping, etc.

Companies Mentioned

Mention Thumbnail
Mention Thumbnail
featured image - Using Channels as Futures in Golang
Tejas Manohar HackerNoon profile picture
Tejas Manohar

Tejas Manohar

@tejasmanohar

L O A D I N G
. . . comments & more!

About Author

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite
Aryan