1
0
mirror of synced 2024-11-05 02:59:16 +00:00
Go to file
2021-09-15 20:07:03 +02:00
build
docs Implemented skip and maxcount parameters for Tapeti.Cmd import 2021-09-15 20:07:03 +02:00
Examples
resources
Tapeti
Tapeti.Annotations
Tapeti.Autofac
Tapeti.CastleWindsor
Tapeti.Cmd Implemented skip and maxcount parameters for Tapeti.Cmd import 2021-09-15 20:07:03 +02:00
Tapeti.DataAnnotations
Tapeti.DataAnnotations.Extensions
Tapeti.Flow
Tapeti.Flow.SQL
Tapeti.Ninject
Tapeti.Serilog
Tapeti.SimpleInjector
Tapeti.Tests
Tapeti.Transient Fixed exception in Tapeti.Transient when message arrives after the timeout 2021-09-09 15:11:44 +02:00
Tapeti.UnityContainer
.gitignore
appveyor.yml Actually fixed the AppVeyor artifact filter this time maybe hopefully 2021-09-09 15:31:10 +02:00
GitVersion.yml
README.md
Tapeti.png
Tapeti.sln
Tapeti.sln.DotSettings
UNLICENSE

Introduction

Tapeti is a wrapper for the RabbitMQ .NET Client designed for long-running microservices. Its main goal is to minimize the amount of messaging code required, and instead focus on the higher-level flow.

Key features

  • Consumers are declared using MVC-style controllers and are registered automatically based on annotations
  • Publishing requires only the message class, no transport details such as exchange and routing key
  • Flow extension (stateful request - response handling with support for parallel requests)
  • No inheritance required
  • Graceful recovery in case of connection issues, and in contrast to most libraries not designed for services, during startup as well
  • Extensible using middleware

Show me the code!

Below is a bare minimum message controller from the first example project to get a feel for how messages are handled using Tapeti.

/// <summary>
/// Example of a simple broadcast message used in the standard publish - subscribe pattern
/// </summary>
public class PublishSubscribeMessage
{
    [Required(ErrorMessage = "Don't be impolite, supply a {0}")]
    public string Greeting { get; set; }
}


[MessageController]
[DynamicQueue("tapeti.example.01")]
public class ExampleMessageController
{
    public ExampleMessageController() { }

    public void HandlePublishSubscribeMessage(PublishSubscribeMessage message)
    {
        Console.WriteLine("Received message: " + message.Greeting);
    }
}

More details and examples can be found in the documentation as well as the example projects included with the source.

Documentation

The documentation for Tapeti is available on Read the Docs:

Master branch (stable release)
Documentation Status

Develop branch
Documentation Status

Builds

Builds are automatically run using AppVeyor, with the resulting packages being pushed to NuGet.

Master build (stable release) Build status

Latest build Build status