Topos 0.36.0
See the version list below for details.
dotnet add package Topos --version 0.36.0
NuGet\Install-Package Topos -Version 0.36.0
<PackageReference Include="Topos" Version="0.36.0" />
paket add Topos --version 0.36.0
#r "nuget: Topos, 0.36.0"
// Install Topos as a Cake Addin #addin nuget:?package=Topos&version=0.36.0 // Install Topos as a Cake Tool #tool nuget:?package=Topos&version=0.36.0
Topos
It's something with topics.
Producing messages
Could e.g. be Apache Kafka, where we send a JSON-serialized message:
var producer = Configure
.Producer(c => c.UseKafka("localhost:9092"))
.Serialization(s => s.UseNewtonsoftJson())
.Create();
// keep producer instance for the entire life of your app,
// remembering to dispose it when we shut down
Using(producer);
// send events like this:;
await producer.Send("someevents", new ToposMessage(new SomeEvent("This is just a message")), partitionKey: "customer-004");
Let's go through the different configuration parts:
// Topos configurations start with 'Configure.', no matter what you want to configure
var producer = Configure
// we configure a producer that uses Kafka, seeding it with a couple of brokers
.Producer(c => c.UseKafka("kafkahost01:9092", "kafkahost02:9092"))
// tell Topos to JSON-serialize messages
.Serialization(s => s.UseNewtonsoftJson())
// creates the producer
.Create();
Consuming messages
Let's also use Kafka to consume messages... the configuration is probably not that surprising to you, it's
just Configure.
and then let the fluent API guide you.
Check this out - here we set up a corresponding consumer that just prints out the contents from the received messages:
var consumer = Configure
.Consumer("default-group", c => c.UseKafka("kafkahost01:9092", "kafkahost02:9092"))
.Serialization(s => s.UseNewtonsoftJson())
.Topics(t => t.Subscribe("someevents"))
.Positions(p => p.StoreInMongoDb("mongodb://mongohost01/some_database", "Positions"))
.Handle(async (messages, context, token) =>
{
foreach (var message in messages)
{
switch (message.Body)
{
case SomeEvent someEvent:
Console.WriteLine($"Got some event: {someEvent}");
break;
}
}
})
.Start();
// dispose consumer when you want to stop consuming messages
Using(consumer);
Let's go through the configuration again:
// start with 'Configure.'...
var consumer = Configure
// configure a consumer instance as part of the group 'default-group', and use Kafka
.Consumer("default-group", c => c.UseKafka("kafkahost01:9092", "kafkahost02:9092"))
// use JSON
.Serialization(s => s.UseNewtonsoftJson())
// subscribe to 'someevents'
.Topics(t => t.Subscribe("someevents"))
// store positions in MongoDB
.Positions(p => p.StoreInMongoDb("mongodb://mongohost01/some_database", "Positions"))
// handle messages
.Handle(async (messages, context, token) =>
{
foreach (var message in messages)
{
switch (message.Body)
{
case SomeEvent someEvent:
Console.WriteLine($"Got some event: {someEvent}");
break;
}
}
})
.Start();
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- fastmember (>= 1.5.0)
- nito.asyncex (>= 5.1.2)
- polly (>= 8.4.2)
-
net6.0
- fastmember (>= 1.5.0)
- nito.asyncex (>= 5.1.2)
- polly (>= 8.4.2)
-
net7.0
- fastmember (>= 1.5.0)
- nito.asyncex (>= 5.1.2)
- polly (>= 8.4.2)
-
net8.0
- fastmember (>= 1.5.0)
- nito.asyncex (>= 5.1.2)
- polly (>= 8.4.2)
NuGet packages (11)
Showing the top 5 NuGet packages that depend on Topos:
Package | Downloads |
---|---|
Topos.Kafka
Kafka-based broker implementation for Topos. |
|
Topos.NewtonsoftJson
Newtonsoft JSON.NET-based message serializer for Topos. |
|
Topos.Serilog
Serilog-based logger factory implementation for Topos. |
|
DAX.EventProcessing.Serialization
Package Description |
|
Topos.MongoDb
MongoDB-based positions manager for Topos. |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
0.37.0 | 307 | 10/24/2024 |
0.36.0 | 248 | 10/24/2024 |
0.35.0 | 2,070 | 10/22/2024 |
0.34.0 | 272 | 10/22/2024 |
0.33.0 | 785 | 8/14/2024 |
0.32.0 | 393 | 7/2/2024 |
0.31.0 | 9,467 | 6/4/2024 |
0.30.0 | 347 | 5/13/2024 |
0.29.0 | 370 | 3/20/2024 |
0.28.0 | 7,477 | 12/10/2023 |
0.26.0 | 424 | 12/9/2023 |
0.25.0 | 2,463 | 8/1/2023 |
0.24.0 | 582 | 6/20/2023 |
0.23.0 | 523 | 6/20/2023 |
0.22.0 | 538 | 6/20/2023 |
0.21.0 | 18,005 | 5/9/2023 |
0.20.0 | 742 | 4/28/2023 |
0.18.0 | 774 | 4/27/2023 |
0.17.0 | 754 | 4/27/2023 |
0.16.0 | 702 | 4/27/2023 |
0.15.0 | 763 | 4/27/2023 |
0.14.0 | 747 | 4/27/2023 |
0.13.0 | 781 | 4/27/2023 |
0.12.0 | 752 | 4/26/2023 |
0.11.0 | 1,166 | 3/14/2023 |
0.10.0 | 1,368 | 2/9/2023 |
0.9.0 | 6,223 | 9/8/2022 |
0.8.0 | 2,382 | 8/31/2022 |
0.7.0 | 2,368 | 8/31/2022 |
0.6.0 | 2,390 | 8/31/2022 |
0.5.0 | 2,448 | 8/4/2022 |
0.4.0 | 2,454 | 6/26/2022 |
0.3.0 | 2,409 | 6/20/2022 |
0.2.0 | 2,730 | 4/17/2022 |
0.1.4 | 2,569 | 3/17/2022 |
0.1.3 | 24,246 | 1/19/2022 |
0.1.2 | 2,584 | 1/13/2022 |
0.1.1 | 1,411 | 12/16/2021 |
0.1.0 | 1,319 | 12/16/2021 |
0.0.99 | 1,292 | 12/16/2021 |
0.0.98 | 2,210 | 9/28/2021 |
0.0.97 | 1,562 | 9/10/2021 |
0.0.96 | 1,549 | 9/4/2021 |
0.0.95 | 1,967 | 7/6/2021 |
0.0.94 | 1,950 | 3/9/2021 |
0.0.93 | 1,399 | 3/9/2021 |
0.0.92 | 1,306 | 3/8/2021 |
0.0.91 | 57,132 | 2/27/2021 |
0.0.90 | 1,347 | 2/2/2021 |
0.0.89 | 1,312 | 2/1/2021 |
0.0.88 | 57,880 | 11/12/2020 |
0.0.87 | 1,470 | 11/12/2020 |
0.0.86 | 1,483 | 11/10/2020 |
0.0.85 | 1,458 | 11/10/2020 |
0.0.84 | 1,850 | 10/2/2020 |
0.0.83 | 1,503 | 10/1/2020 |
0.0.82 | 1,757 | 9/27/2020 |
0.0.81 | 1,782 | 9/18/2020 |
0.0.80 | 1,558 | 9/11/2020 |
0.0.79 | 1,634 | 9/11/2020 |
0.0.78 | 1,584 | 9/11/2020 |
0.0.77 | 1,607 | 9/11/2020 |
0.0.76 | 1,419 | 9/10/2020 |
0.0.75 | 1,479 | 9/1/2020 |
0.0.74 | 1,443 | 9/1/2020 |
0.0.73 | 2,116 | 8/13/2020 |
0.0.72 | 3,549 | 7/14/2020 |
0.0.71 | 1,562 | 7/14/2020 |
0.0.69 | 1,700 | 5/11/2020 |
0.0.69-pre | 803 | 3/29/2020 |
0.0.68-pre | 771 | 3/29/2020 |
0.0.67-pre | 779 | 3/29/2020 |
0.0.66-pre | 824 | 3/29/2020 |
0.0.65-pre | 865 | 3/28/2020 |
0.0.64-pre | 807 | 3/27/2020 |
0.0.63 | 1,563 | 3/27/2020 |
0.0.62 | 1,678 | 3/27/2020 |
0.0.61 | 1,625 | 3/26/2020 |
0.0.60 | 1,623 | 3/26/2020 |
0.0.59 | 1,612 | 3/26/2020 |
0.0.58 | 1,528 | 3/25/2020 |
0.0.57 | 2,006 | 3/22/2020 |
0.0.56 | 1,550 | 2/25/2020 |
0.0.55 | 1,579 | 1/8/2020 |
0.0.54 | 1,573 | 1/7/2020 |
0.0.53 | 1,560 | 1/7/2020 |
0.0.52 | 1,595 | 12/31/2019 |
0.0.51 | 1,582 | 12/29/2019 |
0.0.50 | 1,559 | 12/29/2019 |
0.0.49 | 1,591 | 12/29/2019 |
0.0.48 | 1,655 | 12/29/2019 |
0.0.46 | 1,643 | 12/23/2019 |
0.0.45 | 1,602 | 12/3/2019 |
0.0.44 | 1,531 | 12/3/2019 |
0.0.43 | 1,461 | 11/8/2019 |
0.0.42 | 1,436 | 10/25/2019 |
0.0.41 | 1,470 | 10/25/2019 |
0.0.40 | 1,476 | 10/24/2019 |
0.0.39 | 1,537 | 10/13/2019 |
0.0.38 | 1,452 | 10/13/2019 |
0.0.37 | 1,455 | 10/12/2019 |
0.0.36 | 1,443 | 10/12/2019 |
0.0.35 | 1,517 | 10/12/2019 |
0.0.34 | 1,444 | 10/12/2019 |
0.0.33 | 1,497 | 10/3/2019 |
0.0.32 | 1,513 | 9/30/2019 |
0.0.31 | 1,476 | 9/30/2019 |
0.0.30 | 1,480 | 9/26/2019 |
0.0.29 | 1,441 | 9/20/2019 |
0.0.28 | 1,488 | 9/20/2019 |
0.0.27 | 1,442 | 6/28/2019 |
0.0.24 | 1,517 | 5/10/2019 |
0.0.21 | 1,582 | 5/7/2019 |
0.0.20 | 1,551 | 5/7/2019 |
0.0.19 | 1,559 | 5/6/2019 |
0.0.18-beta | 746 | 4/12/2019 |
0.0.17-beta | 755 | 4/11/2019 |
0.0.16-beta | 766 | 3/28/2019 |
0.0.15-beta | 799 | 3/28/2019 |
0.0.14-beta | 688 | 3/27/2019 |
0.0.13-beta | 727 | 3/26/2019 |
0.0.12-beta | 751 | 3/26/2019 |
0.0.11-beta | 669 | 3/23/2019 |
0.0.10-beta | 659 | 3/22/2019 |
0.0.9-beta | 724 | 3/22/2019 |
0.0.8-beta | 703 | 3/22/2019 |
0.0.7-beta | 698 | 3/22/2019 |
0.0.5-beta | 703 | 3/22/2019 |
0.0.4 | 1,225 | 3/21/2019 |
0.0.3 | 1,165 | 3/21/2019 |
0.0.2-b5 | 554 | 3/4/2019 |
0.0.2-b4 | 492 | 3/1/2019 |
0.0.2-b3 | 503 | 3/1/2019 |
0.0.2-b2 | 495 | 3/1/2019 |
0.0.2-b1 | 470 | 3/1/2019 |
0.0.1 | 631 | 3/1/2019 |