RE: [coldbox:17270] [Announcement] ColdBox Connection Today: Asynch Interceptors

Can you put in a ticket describing how that would work please?

https://www.assembla.com/spaces/coldbox-dashboard/new_dashboard

Thanks!

~Brad

ColdBox Platform Evangelist
Ortus Solutions, Corp

E-mail: brad@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com

Sure thing, I’ll try and get that in later today. I think this is a great addition to the framework. Any thoughts on Actor/Producer vs Threading for other approaches to asynchronous events?

Cheers,
Judah

How would you see that working Judah?

Would it be similar to pub/sub to topics or channels? Do you have an example use case ?

Thanks

Nolan

Yes, Actor/Producer is the same thing as Publish/Subscribe (as far as I am aware). I’ve used it in other languages for creating queues so that a large number of worker processes can work in parallel to complete tasks. It seems, to me, that it is a more common pattern in languages that don’t have good built-in threading like Ruby and Node (which is a framework, not a language, I know) but there seems to be some nice performance that can be wrung out of some tasks by using a non-blocking, message passing setup versus an explicit thread handling model.

A lot of the nitty gritty details are really beyond my current level of understanding, however, so this is musing more than anything else. I think that a really solid and easy way to handle asynchronous work is key to building apps that can scale out horizontally. Building an application that can easily bring up 50 new AWS instances into a cluster and farm out work without having to have a database bottleneck, for instance, is a real challenge in design, but it is the sort of thing that makes people really excited to use a language/framework. Mostly just musing at this point, however, as I said. Something I need to give more concerned thought to.

Cheers,
Judah

Have you seen Marc escher’s cfconcurrent?

Nolan

I haven’t, I’ll have to check it out. Unfortunately, I’ve not been working in CF for the past couple years. I try and stay roughly abreast of things but it can be hard when my work attention is on other languages.

Cheers,
Judah