GithubHelp home page GithubHelp logo

dylan-dutchandbold / demonstrate-rebus-timeout-issue Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 303 KB

Demo of the timeout issue we are getting on our production systems using Rebus with RabbitMQ

C# 100.00%

demonstrate-rebus-timeout-issue's Introduction

Demonstrate Rebus Timeout Issue

This is a sample project to demonstrate the timeout issue we are getting on our production systems using Rebus with RabbitMQ

Getting started

  1. Clone this repository
  2. Restore nuget packages
  3. Run docker-compose.yml (contains rabbitmq service)
  4. Run the tests in the test/ directory

Project structure

folder description
src/ Contains sample API projects
src/DemonstrateRebusTimeoutIssueOnApi Contains sample web API project that utilizes Rebus
src/DemonstrateRebusTimeoutIssueOnApiMasstransit Contains sample web API project that utilizes Masstransit
test/ Contains tests demonstrating the issue
test/DemonstrateRebusTimeoutIssueApiTests Contains tests invoking the sample api's resulting in timeouts. This is closest to what the issue we have on our production system.
test/DemonstrateRebusTimeoutIssueTests Contains more isolated tests, these test unfortunately do not trigger the timeout. But it does take a very log time for some tests to complete compared to the Masstransit tests.

The exception thrown

[2023-12-08 13:47:20Z] fail: Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware[1]
      An unhandled exception has occurred while executing the request.
System.TimeoutException: The operation has timed out.
   at RabbitMQ.Util.BlockingCell`1.WaitForValue(TimeSpan timeout)
   at RabbitMQ.Client.Impl.SimpleBlockingRpcContinuation.GetReply(TimeSpan timeout)
   at RabbitMQ.Client.Impl.ModelBase.ModelRpc(MethodBase method, ContentHeaderBase header, Byte[] body)
   at RabbitMQ.Client.Framing.Impl.Model._Private_ChannelOpen(String outOfBand)
   at RabbitMQ.Client.Framing.Impl.AutorecoveringConnection.CreateNonRecoveringModel()
   at RabbitMQ.Client.Framing.Impl.AutorecoveringConnection.CreateModel()
   at Rebus.RabbitMq.RabbitMqTransport.CreateChannel()
   at Rebus.Internals.WriterModelPoolPolicy.Create()
   at Rebus.Internals.ModelObjectPool.Get()
   at Rebus.RabbitMq.RabbitMqTransport.SendOutgoingMessages(IEnumerable`1 outgoingMessages, ITransactionContext context)
   at Rebus.Transport.AbstractRebusTransport.<>c__DisplayClass3_1.<<Send>b__1>d.MoveNext()

Expected Result

The highlighted test below should pass because each of the 1000 request sent should be processed successfully. However as the log will show, rebus is getting a timeout. img.png

demonstrate-rebus-timeout-issue's People

Contributors

dylan-dutchandbold avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.