ng-feature-flags | Feature Toggles / Feature flags | Access Management library
kandi X-RAY | ng-feature-flags Summary
kandi X-RAY | ng-feature-flags Summary
Feature Toggles / Feature flags for use with angular. Has support for Directive, Guard and Pipe. Clean and elegant solution that is free and enables your team to embrace Continuous Deployment as well as A/B Testing.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of ng-feature-flags
ng-feature-flags Key Features
ng-feature-flags Examples and Code Snippets
Community Discussions
Trending Discussions on ng-feature-flags
QUESTION
I have started using launch darkly(LD) recently. And I was exploring how LD updates its feature flags.
As mentioned Here, there are two ways.
- Streaming
- Polling
I was just thinking which implementation will be better in what cases. After a little research about streaming vs polling
, It was found Streaming
has the following advantages over polling
.
- Faster than polling
- Receives only latest data instead of all the data which is same as before
- Avoids periodic requests
I am pretty sure all of the above advantages comes at a cost. So,
- Are there any downsides of using streaming over polling?
- In what scenarios polling should be preferred? or the other way around?
- On what factors should I decide whether to stream or poll?
ANSWER
Answered 2019-Dec-27 at 10:55Streaming requires your application to be always alive. This might not be the case in a serverless environment. Furthermore, a streaming solution usually relies on a connection that is always open in the background. This might be costly, so feature flag providers tend to limit the number of concurrent connections you can keep open to their infrastructure. This might be not a problem if you use feature flags only in a few application instances. But you will easily reach the limit if you want to stream feature flag updates to mobile apps or a ton of microservices.
PollingPolling sounds less fancy, but it's a reliable & robust old-school pattern that will work in almost all environments.
WebhooksThere is a third option too: webhooks. The basic idea is that you create an HTTP endpoint on your end and he feature flag service will call that endpoint whenever a feature flag value update happens. This way you get a "notification" about feature flag value changes. For example ConfigCat supports this model. ConfigCat can notify your infrastructure by calling your webhooks and (optionally) pushing new values to your end. Webhooks have the advantage over streaming that they are cheap to maintain, so feature flag service providers don't limit them as much (for example ConfigCat can give you unlimited webhooks).
How to decideHow I would use the above 3 option really depends on your use-case. A general rule of thumb is: use polling by default and add quasi real-time notifications (by streaming or by webhooks) to the components where it's critical to know about feature flag value updates.
QUESTION
I'm trying to add this Microsoft.FeatureManagement service package into my .NET Framework 4.7 web API. The application is configured to use the OWIN pipeline and Autofac DI. All services are registered against the Autofac IContainerBuilder.
The Feature Management service registration extends IServiceCollection
and while it's a .NET Standard 2.0 library, it looks like it's designed to be used against .NET Core DI service registration. For example, the setup expects registration to look like this:
ANSWER
Answered 2019-Nov-22 at 20:49Use Autofac.Extensions.DependencyInjection. There's a builder.Populate(IServiceCollection)
extension that does exactly that.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install ng-feature-flags
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page