Simple Injector
An easy, flexible, and fast Dependency Injection library that promotes best practice to steer developers towards the pit of success. (by simpleinjector)
grace
Graceful restart & zero downtime deploy for Go servers. (by facebookarchive)
Our great sponsors
Simple Injector | grace | |
---|---|---|
4 | 2 | |
1,183 | 4,779 | |
- | - | |
5.8 | 10.0 | |
about 1 month ago | about 5 years ago | |
C# | Go | |
MIT License | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Simple Injector
Posts with mentions or reviews of Simple Injector.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2024-03-25.
-
Modular Dependency Injection in .NET
When I was building application with .NET Framework I always used libraries like Autofac and SimpleInjector for dependency injection. I really liked to create modules (Packages in SimpleInjector) to achieve higher cohesion and lower coupling in my class libraries. I made a module for every class library in which all dependencies inside of that class library were registered. Why should my web application (for example) know if MyBeautifulService in MyBeautifulClassLibrary should be transient or singleton?
- How to do dependency injection based on HttpContext values?
-
Chicken and Egg problem - being able to overwrite the config file and the class it instantiates
You can use SimpleInjector library to do that. Link: https://github.com/simpleinjector/SimpleInjector
-
Does anybody has a recommended resource about Dependency Injection?
My favorite DI container is LightInject. Very fast and has all the features that I need. Other good DI containers are Grace and SimpleInjector, IMO.
grace
Posts with mentions or reviews of grace.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-05-20.
-
Any way to graceful restart the gin http and https servers like nginx for production?
I have read this article. As i know facebookarchive/grace has been archived by the owner on Mar 22, 2019. https://github.com/facebookarchive/grace
-
Scalable server design in Rust with Tokio
What you really need is a facility to pass down a socket from a process to another, like facebook's grace https://github.com/facebookarchive/grace (in go). This way you can guarantee you don't lose a single connection.
What are some alternatives?
When comparing Simple Injector and grace you can also consider the following projects:
Autofac - An addictive .NET IoC container
sozu - Sōzu HTTP reverse proxy, configurable at runtime, fast and safe, built in Rust. It is awesome!
Microsoft.Extensions.DependencyInjection
air - ☁️ Live reload for Go apps
Unity - This repository contains all relevant information about Unity Container suit
copilot - A stream-based runtime-verification framework for generating hard real-time C code.
Ninject - the ninja of .net dependency injectors
tokio-reuseport
DryIoc - DryIoc is fast, small, full-featured IoC Container for .NET
tableflip - Graceful process restarts in Go
LightInject - An ultra lightweight IoC container
overseer - Monitorable, gracefully restarting, self-upgrading binaries in Go (golang)
Simple Injector vs Autofac
grace vs sozu
Simple Injector vs Microsoft.Extensions.DependencyInjection
grace vs air
Simple Injector vs Unity
grace vs copilot
Simple Injector vs Ninject
grace vs tokio-reuseport
Simple Injector vs DryIoc
grace vs tableflip
Simple Injector vs LightInject
grace vs overseer