-
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.
The previous post detailed the problem and one solution that allows gracefully solving it without polluting your code. This solution is to use LazyProxy for IoC containers. The main idea is to substitute an object of the real type with a proxy. This proxy is a runtime generated type that implemented a specific interface T and called all members of this interface through Lazy. Thus, the behavior changes as if Lazy was injected instead of the T interface. Instances are created only on demand, but at the same time, the code remains clean.
Usage of this library is similar to already existing libraries LazyProxy.Unity and LazyProxy.Autofac.
The initiative and brilliant initial implementation of the LazyProxy.ServiceProvider library belong entirely to Carlos Mendible, for which I want to express gratitude and appreciation on behalf of the entire open-source community. Besides, Carlos has generously permitted to move the new repository alongside all other LazyProxy's repositories. That was a big step forward in the lazy dependency injection ideas.
Related posts
-
New Project: SVGHelpers.com
-
Flying planes with a JavaScript autopilot (2023)
-
VContainer VS Init(args) Lite - a user suggested alternative
2 projects | 5 May 2024 -
Zenject VS Init(args) Lite - a user suggested alternative
2 projects | 5 May 2024 -
.NET Aspire is the best way to experiment with Dapr during local development