Settings

Theme

Serialising ASP.NET method calls for later execution

johnnyreilly.com

1 points by johnny_reilly 2 years ago · 2 comments

Reader

bunbun69 2 years ago

> So how can we take a method call, serialise it, perhaps store it in a database, and then later rehydrate and execute?

Any messaging queue would be better. Yes it's easy to setup. No it doesn't require additional complexity (in fact, it's less complex than the proposed solution)

example: https://www.rabbitmq.com/tutorials/tutorial-one-dotnet#recei...

  • johnny_reillyOP 2 years ago

    Queues are great; but it looks like you're trying to solve a different problem. In my own case, the aim was to store a function for delayed execution. That's slightly different from storing typical state. The interesting bit (hopefully) in here is serialising and deserialising function calls.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection