Reputation: 4766
I implemented a newsletter function.
The user can select a list form his customers that he want send a newsletter to, the list of customers can possible be a few thousand entries large.
After the user finished to create the list I'd will a database with all information I need from the list. Now I want to make this process as user friendly as possible.
I thought about the following:
My problem is that I can't figure out how I could implement this in symfony2, would there be a possibility with events or should I save the list in the session?
Upvotes: 0
Views: 156
Reputation: 1085
You have a few options. The most common two are:
I prefer the queue because it's more manageable. In Symfony2 there are a few packages available to implement a queue system:
You can search for alternatives on https://packagist.org
I would implement the following flow:
In the backend:
At the frontend: Inform the user if the database is updated and the status is changed
Upvotes: 3