jibbr icon indicating copy to clipboard operation
jibbr copied to clipboard

Port Jabbot from Console app to ASP.NET MVC

Open andrewtobin opened this issue 13 years ago • 9 comments

http://nuget.org/packages/SignalR https://github.com/davidfowl/Jabbot/

Starts a app-pool-recycle resillient worker process for checking messages sent to it, and returning messages.

Can we do a persistent connection from an ASP.NET page, or would we have to do a hosted bot somehow?

andrewtobin avatar Jan 09 '12 10:01 andrewtobin

Doing it in SignalR - so we have a bot in SignalR talking live back to the chat room was a great suggestion.

SignalR <--> SignalR - keeping both live.

andrewtobin avatar Jan 09 '12 10:01 andrewtobin

***************** WE'RE LEAVING IT IN CONSOLE TO BEGIN WITH - WILL ADVISE WHEN WE'RE RIGHT TO CHANGE OVER

andrewtobin avatar Jan 09 '12 12:01 andrewtobin

This has been started, but with NancyFx rather than ASP.NET MVC

ghost avatar Jan 11 '12 23:01 ghost

Any reason for the switch from MVC to NancyFx? Is it just to avoid the app pool recycling? You're going to have that issue anyway if AppHb reboots a deployment?

DavidBurela avatar Jan 12 '12 01:01 DavidBurela

Nancy's really nice. Also thats what @shiftkey had made it before he told me to go nuts.

ghost avatar Jan 12 '12 06:01 ghost

To clarify, we went with NancyFx because @sethwebster contributed the initial web code.

shiftkey avatar Jan 12 '12 11:01 shiftkey

We need to get Paul Stovell to submit some initial code, so that we're all using StovellFx ;-)

On 12 January 2012 22:31, Brendan Forster < [email protected]

wrote:

To clarify, we went with NancyFx because @sethwebster contributed the initial web code.


Reply to this email directly or view it on GitHub: https://github.com/Code52/jibbr/issues/12#issuecomment-3461706

DavidBurela avatar Jan 12 '12 13:01 DavidBurela

I've got a working Nancy host working on AppHarbor -- it's running twitterbot.

I went with Nancy for fun, more than as a design decision. I've gotten around the App recycling using my MomentApp nuget package. Basically, upon app start, the app creates a scheduled moment job to ping the service again in 2 minutes, once that happens, another scheduled job is created and so forth.

Something more robust would be needed for a mission critical app, but this strategy is simple, and free.

sethwebster avatar Jan 12 '12 16:01 sethwebster

Gotta agree with @sethwebster on this - plus we've had the NancyFx guys hanging out in the chatroom to help with a couple of questions.

shiftkey avatar Jan 12 '12 20:01 shiftkey