Skip to content

Commit

Permalink
Created architecture.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Lanayx committed Nov 17, 2023
1 parent 0fd0243 commit 7669969
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions architecture.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
![image](https://github.com/fsprojects/pulsar-client-dotnet/assets/3329606/a7dc577e-beed-4208-818e-fe799f058637)

Architecturally pulsar-client-dotnet is a series of actors that send messages to each other. Each of them uses [Unbounded Channel](https://devblogs.microsoft.com/dotnet/an-introduction-to-system-threading-channels/) as a message queue and processes messages one by one in loop.
Actors communicate with each other by sending messages between each other. Messages are modeled as [discriminated unions](https://learn.microsoft.com/en-us/dotnet/fsharp/language-reference/discriminated-unions)

Connections to broker are reused (one connection per server) between producers and consumers.

PulsarClient class serves as un umbrella class and stores reference to all other entities, i.e. consumers, producers, connection pool, lookup service and schema providers

0 comments on commit 7669969

Please sign in to comment.