Activities of "paykoolbackend"

Hello,

We are using DistributedEventBus with Confluent Kafka.

We have wrapped _distributedEventBus.PublishAsync(event) in a try-catch block, but it doesn't catch the exception when it can't connect to Confluence Kafka. (Following your suggestion, use try-catch in https://support.abp.io/QA/Questions/3079/IDistributedEventBus-throw-exception-when-it-can-not-connect-to-Kafka)

try
{
    await _distributedEventBus.PublishAsync(eventData);
}
catch (Exception ex)
{
    _logger.LogError(ex.Message);
    throw;
}

Additionally, we need to wait for 5 more minutes, then application throw exception as "An internal error occurred during your request!". For the request, it took too much time.

Q1: Why can't we catch the exception? Q2: How to avoid waiting for too long?

  • ABP Framework version: v7.1.1
  • UI Type: Flutter
  • Database System: EF Core (SQL Server) / MongoDB
  • Tiered (for MVC) or Auth Server Separated (for Angular):
  • Exception message and full stack trace:
  • Steps to reproduce the issue:

Thanks, let me try it.

Test OK.

There is another question: Can I configure ProducerConfig and ConsumerConfig using the appsettings.json file? Or can they only be configured using the Options Classes? https://docs.abp.io/en/abp/latest/Distributed-Event-Bus-Kafka-Integration

ok, thanks

After our discussion, modifying the MessageTimeoutMs is not the best option for us because it's difficult to set an appropriate timeout.

We would like to handle the issue of not being able to connect to the Kafka server and do not want the API to block. Currently, we have configured the settings as follows:

Configure<AbpKafkaOptions>(options =>
{
    options.ConfigureProducer = config =>
    {
        config.EnableIdempotence = true;
        config.MessageSendMaxRetries = 3;
        config.RetryBackoffMs = 1000;
    };
});

After the retries are exhausted, we still need to wait for the MessageTimeoutMs time.(default = 300000ms) Is it possible to prioritize the retry time, so that an error is reported when the retries are exhausted?

Got it, thanks.

In the event of connection issues with the Kafka server, what would you recommend doing?

The strategies mentioned above are things we will do, but I would like to know if ABP has any mechanisms to handle sudden Kafka server connection failures, so that the API can operate smoothly without blocking.

OK, thank you.

Hello,

https://docs.abp.io/en/abp/latest/Blob-Storing-Azure#options

I would like to know if it's possible to remove the "host" string and directly use the blob name as the path under the container. (My current tenant is null)

Now: test1(container name)/host/data/test.pdf Expect: test2(container name)/data/test.pdf

Thanks.

  • ABP Framework version: v7.1.1
  • UI Type: Flutter
  • Database System: EF Core (SQL Server) / MongoDB
  • Tiered (for MVC) or Auth Server Separated (for Angular):
  • Exception message and full stack trace:
  • Steps to reproduce the issue:

hi

I wrote the following code to override the DefaultAzureBlobNameCalculator service, but it cannot enter the TestBlobNameCalculator/Calculate.

And throw error "Could not found the requested BLOB 'test.pdf' in the container 'TestContainer'!".

Did I miss something?

public class TestBlobNameCalculator : DefaultAzureBlobNameCalculator
{
    public TestBlobNameCalculator(ICurrentTenant currentTenant) : base(currentTenant)
    {
    }

    public override string Calculate(BlobProviderArgs args)
    {
        if (args.ContainerName == "testContainer")
        {c
            return args.BlobName;
        }

        return base.Calculate(args);
    }
}
Showing 1 to 10 of 26 entries
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.0.0-preview. Updated on July 17, 2025, 06:22