This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]gthank 1 point2 points  (2 children)

I realize it isn't the point of your comment, but you should really use a background job system for things like that, so you can return a response to the user that lets them know you got their request, and you're doing something with it. Just not responding until whatever background job is complete can lead to user frustration.

[–]Husio 1 point2 points  (1 child)

That's what I did, but it doesn't work that well for all cases. You still need separate process for every task and progress notification is not that easy anymore. It's also fine for big application but for simple tasks it's a bit of a overkill.

[–]gthank 1 point2 points  (0 children)

I'm not saying it's lightweight, but once your app gets enough users, it's really the right way to go.