App init and graceful watch lib recommendations ?

This page summarizes the projects mentioned and recommended in the original post on /r/golang

InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  • appctl

    Application Controller

  • Is there any lib to init the app (read config from yaml, db.. ) and control it's gracefully shutdown? I found this one https://github.com/iv-menshenin/appctl - which doesn't have init thing, but instead has ping service. Was wondering are there any de facto standard libs to do that ?

  • koanf

    Simple, extremely lightweight, extensible, configuration management library for Go. Support for JSON, TOML, YAML, env, command line, file, S3 etc. Alternative to viper.

  • For configuration, I like Koanf.

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • fx

    A dependency injection based application framework for Go. (by uber-go)

  • I’m not sure of much that can do all of that - maybe it’s a use case for https://github.com/uber-go/fx

  • run

    A universal mechanism to manage goroutine lifecycles (by oklog)

  • What I’ve done in the past is use a run group (like https://github.com/oklog/run ) and one of the goroutines in the group is just listening for a SIGINT/SIGTERM/etc. When it sees that it throws an error which cancels the root context and let’s each component handle its own graceful shutdown

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Dependency Injection: A Straightforward Implementation in Golang

    1 project | dev.to | 10 May 2024
  • Injeção de dependência em Go

    2 projects | dev.to | 28 Feb 2024
  • Gorilla,wow

    2 projects | /r/golang | 9 Jul 2023
  • How normal is it to stare at your screen, getting nothing done when stuck and waiting for help?

    1 project | /r/cscareerquestions | 26 Apr 2023
  • Question about dependency initialization

    2 projects | /r/golang | 21 Apr 2023