Steeltoe | Steeltoe .NET Core Components : CircuitBreaker | Microservice library
kandi X-RAY | Steeltoe Summary
kandi X-RAY | Steeltoe Summary
Steeltoe .NET Core Components: CircuitBreaker, Configuration, Connectors, Discovery, Logging, Management, and Security
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 Steeltoe
Steeltoe Key Features
Steeltoe Examples and Code Snippets
Community Discussions
Trending Discussions on Steeltoe
QUESTION
I have a turbine server running on openshift 3 and deployed a donet core 3.1 c# microservice using steeltoe 3.0.2 circuit breaker libraries. I can monitor the microservice stream on hystrix dashboard through service stream url (/hystrix/hystrix.stream). What I want to do is to register the microservice hystrix event stream to the turbine server event stream. Does anyone know how to do this? any reference link will be a great help also.
Update: project references and setup files configuration
myproject.csproj:
...ANSWER
Answered 2021-May-27 at 14:42This error message is telling us that HystrixConfigurationStream
hasn't been registered with the service container. That can be added with this code in startup.cs:
QUESTION
I am wondering is it possible to load not only appconfig.json from spring config server but other files. For example i have got a templates in .html format. Can I somehow get them from spring server along with appsettings file? Probably steeltoe knows how to do that?
...ANSWER
Answered 2021-Apr-19 at 17:39Steeltoe does provide a configuration provider for Spring Cloud Config Server that will allow you to map configuration values from any supported file format into key-value pairs, and there are several strategies for layering multiple configuration files but I don't think there would be any support for .html files.
If you're looking for a way to use version-controlled templates, why not read from a git repo directly rather than putting config server in the middle?
QUESTION
I am looking to switch our HttpClients to use Flurl. However, our HttpClient is currently configured to use Service Discovery via Steeltoe. Basically it's doing this in ConfigureServices:
...ANSWER
Answered 2021-Mar-09 at 14:22There's a few ways to add a custom message handler with Flurl (such as with a custom factory), but since you're already using IHttpClientFactory
, I think the easiest path to get what you want (and the one I'd recommend) is to continue injecting HttpClient
into your services as you're doing and wrap them with Flurl inside the service:
QUESTION
I am using Steeltoe.CloudFoundry.Connector.EFCore with Npgsql.EntityFrameworkCore.PostgreSQL. I want to migrate the application to .NET 5.0. After updating Npgsql to 5.0.2 I am getting the error 'Unable to find DbContextOptionsBuilder, are you missing a PostgreSql EntityFramework Core assembly?' when adding DBContext.
I tried to look at the available versions of Steeltoe, but the highest NuGet I see is 2.5.2, which gives me this error as well as the older I had (2.4.4).
Is there any version combination of those libraries that works?
...ANSWER
Answered 2021-Mar-05 at 19:32The name of that Steeltoe package changed in 3.0, you'll be needing Steeltoe.Connector.EFCore
going forward.
The name of that particular type inside Npgsql.EntityFrameworkCore.PostgreSQL
changed in 5.0, so that's what is preventing Steeltoe from finding it. The fix has also been applied to the 2.x branch and is included in version 2.5.3.
Check the Steeltoe Samples repo for both 2.x and 3.x versions
QUESTION
I am trying to create microservices using Spring-boot Java and SteelToe ASP.NET
Step-1: I created a full service using Java (A service with UI and API. It is hosted on PCF). The API has ClassesControler defined inside.
Step-2: Create a microservice using ASP.NET, SteelToe. Register the service in Eureka and make it discoverable using Zuul.
Step-3: Use the Interface, Service approach to access the JAVA microservice(s)
...ANSWER
Answered 2020-May-21 at 16:04I'm unclear which direction traffic is flowing in your scenario, but I think you're saying the .NET application is trying to call the Java application. The code you're using is from before HttpClientFactory was introduced and is a bit clunkier than what's possible now in general. Steeltoe can be used with HttpClientFactory for a better overall experience.
Steeltoe has debug logging available to confirm the results of service lookup if you set logging:loglevel:Steeltoe.Common.Discovery
= true
in your application config.
You didn't mention specifically what isn't working, but I'm guessing you're getting a 404 since it looks like your code will create a request path looking like https://fortuneService/api/fortunes/random/api/v1/classes
If you're looking for something like Feign in .NET, you could try out DHaven.Faux
QUESTION
How can I get back multiple config files from a spring config server?
I have c# dotnetcore 3.1 application using Steeltoe.Extensions.ConfigServerCore.2.2.0
I am able to get the configurations that match the spring application name. ie if my application name is "my-service" then I can get "my-service.properties" as well as "application.properties" by using
...ANSWER
Answered 2020-May-21 at 15:45Steeltoe largely relies on Config Server's logic for finding the backing files by specifying the app name, environment name and additional labels. Because of the way .NET configuration is flattened into a dictionary, you won't see this reflected later in your application, but if config values are missing that you're hoping to see it may be due to the file names not matching the expected conventions.
Using AddConfigServer("external")
will result in a request for "my-service-external.properties". Due to the dash being used in the convention for separating the app name from environment (or profile) name you might not want to use it in your app name.
Additionally, there have been a few releases of Steeltoe since 2.2.0, I'd suggest using the latest GA release available (currently 2.4.3)
QUESTION
As the title suggests, docker-compose tries to build a 3.0 ASP.NET Core Image instead of 3.1.
I recently updated my project from 3.0 using the instructions from this Microsoft article: https://docs.microsoft.com/en-us/aspnet/core/migration/30-to-31?view=aspnetcore-3.1&tabs=visual-studio except the global.json part, since I don't use one.
Here is what I tried:
This is my yaml file:
...ANSWER
Answered 2020-Mar-03 at 10:19You should recreate your docker file,
There is a FROM
keyword in your docker file that shows your container should start with which image.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install Steeltoe
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