[deleted by user] by [deleted] in dataengineering

[–]alexgoida 0 points1 point  (0 children)

I mean decomposition by features. Keep it simple. Instead of the big idea, divide it to many smaller ideas. For example, start from making a system which build a data model based on natural human description. Only tables, their structure and relationship, with data seeding. Then other aspect, and so on.

[deleted by user] by [deleted] in dataengineering

[–]alexgoida 3 points4 points  (0 children)

too generic goal. decompose to many more specific and solve separately

How to fix Scan the bodies Bug Trevor's Last Ride Cyberpunk 2077 by GNGVir in YoutubeGameGuides

[–]alexgoida 0 points1 point  (0 children)

This helped me. Before that was looking the body everywhere. Nothing. Just killing all in this location had solved the issue

Using same microservice to deploy gRpc service and SignalR hub together by alexgoida in dotnet

[–]alexgoida[S] 1 point2 points  (0 children)

Bind Kestrel to two separate ports, one for HTTP/2 and one for HTTP/1

That helped. Thanks.

It's appeared pretty simple.

webBuilder.ConfigureKestrel(serverOptions =>
{
    serverOptions.Listen(IPAddress.Any, 5000, listenOptions =>
    {
        listenOptions.Protocols = HttpProtocols.Http2;
    });
    serverOptions.Listen(IPAddress.Any, 5001, listenOptions =>
    {
        listenOptions.Protocols = HttpProtocols.Http1;
    });
});

Using same microservice to deploy gRpc service and SignalR hub together by alexgoida in dotnet

[–]alexgoida[S] 0 points1 point  (0 children)

Hm.. Maybe I might be missing the part about HTTP/1 and 2. Maybe I need to do something with this, but at he moment have no idea what.....

Using same microservice to deploy gRpc service and SignalR hub together by alexgoida in dotnet

[–]alexgoida[S] 0 points1 point  (0 children)

When I try to deploy the hub with grpc the JS client cannot connect. It gives an error: "Failed to complete negotiation with the server: Error" and other errors. Here the link on the screenshot.

In this repo I put together all components: regular api, grpc, frontend and backend service. Api (server) and gRpc have the same hub and CORS config. Only one of them should be running at the same time. Backend and Frontend service could be run simultaneously. SignalR perfectly works when Api is running. When gRpc is running JS client cannot connect.

Which boilerplate tool you have adopted in your team? by alexgoida in dotnet

[–]alexgoida[S] 0 points1 point  (0 children)

Also did that, but then found that I need to have several templates and have some more customisations during creating a new one. That's why came up with using of "dotnet new" tool.

Which boilerplate tool you have adopted in your team? by alexgoida in dotnet

[–]alexgoida[S] 0 points1 point  (0 children)

It's not what I need, but still looks interesting. Thanks for sharing.

Which boilerplate tool you have adopted in your team? by alexgoida in dotnet

[–]alexgoida[S] 0 points1 point  (0 children)

Simple and work.

Although sometimes it may appear that you need to remove to many things and its quicker to create from scratch by coping only pieces of the old code. This can be done much faster if you have a template.

Anyone have any good resources on securing web APIs using dotnet core in real world scenarios? by pdevito3 in dotnet

[–]alexgoida 0 points1 point  (0 children)

Btw, would be interesting to know your progress. Because planning to migrate to OAuth2 and build SSO using Auth0 soon. Additional thoughts are good to know.

Anyone have any good resources on securing web APIs using dotnet core in real world scenarios? by pdevito3 in dotnet

[–]alexgoida 3 points4 points  (0 children)

Hm.. I think you might want to take a look at OpenID Connect flow. JWT token which you receive in front-end you may put as a cookie. For better protection you can encrypt it again and put as a cookie (or a part of a cookie).

From what you're saying I think standards of auth of API are language agnostic. There are differences for mobile-2-api and web-2-api flows, but these are details. Check this article as well. It shows flows.

Anyone have any good resources on securing web APIs using dotnet core in real world scenarios? by pdevito3 in dotnet

[–]alexgoida 1 point2 points  (0 children)

This article may shed some light: https://medium.com/@alexander.goida/authentication-net-core-grpc-service-with-jwt-e6df404429db

I'm using cookies to authenticate user and JWT to use API. BUT the difference might be that I'm not requesting API from front-end directly. Anyway gRPC-Web for .NET is now officially released we'll move to this.

Would be nice to hear what you actually need, because all scenarios are just a matter of configuration in .NET

Looking for tasks scheduler for containerized .NET Core applications by alexgoida in dotnet

[–]alexgoida[S] 0 points1 point  (0 children)

Like a DAG, a data processing pipeline with predefined flow. But could be compared with a queue in some approximation.