Add retry + idempotency on trading when try + add more tts

This commit is contained in:
2025-09-20 02:28:16 +07:00
parent cb1252214a
commit d58672f879
15 changed files with 637 additions and 78 deletions

View File

@@ -32,6 +32,8 @@
<PackageReference Include="Swashbuckle.AspNetCore.SwaggerGen" Version="6.6.1"/>
<PackageReference Include="Swashbuckle.AspNetCore.SwaggerUI" Version="6.6.1"/>
<PackageReference Include="xunit" Version="2.8.0"/>
<PackageReference Include="Polly" Version="8.4.0"/>
<PackageReference Include="Polly.Extensions.Http" Version="3.0.0"/>
</ItemGroup>
<ItemGroup>

View File

@@ -13,7 +13,10 @@
"AppSecret": "3STq1UyPJ5WHixArBcVBKecWtyR4QpgZ1uju4HHvvJH2RwtacJnvoyzuaiNC8Xibi4rQb3eeH2YtncKrMxCYiV3a"
},
"Web3Proxy": {
"BaseUrl": "http://srv-captain--web3-proxy:4111"
"BaseUrl": "http://srv-captain--web3-proxy:4111",
"MaxRetryAttempts": 3,
"RetryDelayMs": 1000,
"TimeoutSeconds": 30
},
"Serilog": {
"MinimumLevel": {

View File

@@ -18,7 +18,10 @@
"RefundEndpoint": "/api/credits/refund"
},
"Web3Proxy": {
"BaseUrl": "http://srv-captain--web3-proxy:4111"
"BaseUrl": "http://srv-captain--web3-proxy:4111",
"MaxRetryAttempts": 3,
"RetryDelayMs": 1000,
"TimeoutSeconds": 30
},
"Serilog": {
"MinimumLevel": {

View File

@@ -21,7 +21,10 @@
"Token": ""
},
"Web3Proxy": {
"BaseUrl": "http://localhost:4111"
"BaseUrl": "http://localhost:4111",
"MaxRetryAttempts": 3,
"RetryDelayMs": 1000,
"TimeoutSeconds": 30
},
"Kaigen": {
"BaseUrl": "https://kaigen-back-development.up.railway.app",