purplebricks / pat.sender Goto Github PK
View Code? Open in Web Editor NEWPat Sender
Home Page: http://purplebricks.io/pat/docs/pat-sender.html
License: Apache License 2.0
Pat Sender
Home Page: http://purplebricks.io/pat/docs/pat-sender.html
License: Apache License 2.0
We are currently scheduling commands by setting Message.ScheduledEnqueueTimeUtc
.
https://docs.microsoft.com/en-us/dotnet/api/microsoft.servicebus.messaging.brokeredmessage.scheduledenqueuetimeutc?view=azure-dotnet#Microsoft_ServiceBus_Messaging_BrokeredMessage_ScheduledEnqueueTimeUtc
I think we should be scheduling messages using the QueueClient.ScheduleMessageAsync(โฆ)
https://docs.microsoft.com/en-us/dotnet/api/microsoft.azure.servicebus.queueclient.schedulemessageasync?view=azure-dotnet
This means that we would be able to cancel the scheduled message:
https://docs.microsoft.com/en-us/dotnet/api/microsoft.azure.servicebus.queueclient.cancelscheduledmessageasync?view=azure-dotnet
Why is this helpful?
I don't think we are currently logging when messages are published.
Should we be? If so, Info or Debug?
I was just running through the example projects in the pat
repo, and noticed a lack of output on Publisher
project compared to Subscriber
. This might be helpful when debugging a problem.
e.g. if my subscriber didn't receive a message can I be sure that publisher published anything?
Pat.Subscriber has IoC helpers for both structuremap and dotnet (see
https://github.com/purplebricks/Pat.Subscriber/tree/master/Pat.Subscriber.NetCoreDependencyResolution and https://github.com/purplebricks/Pat.Subscriber/tree/master/Pat.Subscriber.StructureMap4DependencyResolution).
Something comparable needs to be built to enable simple boot strapping of an event publisher.
It would be good to bring Pat.Sender inline with Pat.Subscriber regarding logging
purplebricks/Pat.Subscriber#21
Ideally we will just use ILogger<T>
.
This will
Simplify IOC
Be more standard/consistent
Would you accept a PR to use JsonSerialiser in MessageGenerator.cs ?
I've got a simple benchmark that shows this results in almost 50% less allocations.
If this is something you'll accept I'll submit a PR
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.