bnaya-payoneer / todo

0 stars 0 forks source link

Infra Template #5

Open bnaya-payoneer opened 4 months ago

bnaya-payoneer commented 4 months ago

PBI

Template Repo

Each switch should have a WIKI page which will be address from the ReadMe.md

bnaya-payoneer commented 4 months ago
bnaya-payoneer commented 4 months ago

Check Api Versioning:

bnaya-payoneer commented 4 months ago

Guidelines

Wish List

Notes:

bnaya-payoneer commented 4 months ago

Health:

Current State

https://dev.azure.com/Payoneer/Payoneer/_git/datacollection-profile-service?path=/ProfileService.WebApi/Startup.cs

Payoneer.Infrastructure.HealthCheckNetcoreExtensions

bnaya-payoneer commented 4 months ago

domain-repo

mono-repo

gbt-psfx-glps-engine gbt-providers-integration paycloud-compliance-kycv - Repos (azure.com)

TODO

Features

Review @Ram Yaari

bnaya-payoneer commented 4 months ago

Polly

var services = new ServiceCollection();

// Define a resilience pipeline with the name "my-pipeline"
services.AddResiliencePipeline("my-pipeline", builder =>
{
    builder
        .AddRetry(new RetryStrategyOptions())
        .AddTimeout(TimeSpan.FromSeconds(10));
});

// Build the service provider
var serviceProvider = services.BuildServiceProvider();

// Retrieve a ResiliencePipelineProvider that dynamically creates and caches the resilience pipelines
var pipelineProvider = serviceProvider.GetRequiredService<ResiliencePipelineProvider<string>>();

// Retrieve your resilience pipeline using the name it was registered with
ResiliencePipeline pipeline = pipelineProvider.GetPipeline("my-pipeline");

// Alternatively, you can use keyed services to retrieve the resilience pipeline
pipeline = serviceProvider.GetRequiredKeyedService<ResiliencePipeline>("my-pipeline");

// Execute the pipeline
await pipeline.ExecuteAsync(static async token =>
{
    // Your custom logic goes here
});
 _pipeline = new ResiliencePipelineBuilder()
    .AddRetry(new RetryStrategyOptions()) // Add retry using the default options
    .AddTimeout(TimeSpan.FromSeconds(10)) // Add 10 seconds timeout
    .Build(); // Builds the resilience pipeline

Image

bnaya-payoneer commented 4 months ago

OTEL

Logging

bnaya-payoneer commented 3 months ago

Outbox Pattern

bnaya-payoneer commented 3 months ago

Devops Portal

Image

Image

bnaya-payoneer commented 3 months ago

Logging

TODO

bnaya-payoneer commented 3 months ago

EF

bnaya-payoneer commented 2 months ago

Distributed Lock

bnaya-payoneer commented 1 month ago

Error Details: Consider using : https://www.rfc-editor.org/rfc/rfc7807.html

bnaya-payoneer commented 1 month ago

Docker

Integration Tests