DEV Community 👩‍💻👨‍💻

Discussion on: Get your C# WebAPI controller to keep processing a request after returning 200 OK

deanashton profile image
Dean Ashton Author

Hi Ryan, thanks for your message. In this part of the system we had a pipeline that executed small tasks after a main process had finished executing to customise the results - and one task we needed to execute was really long running and it wasn't necessary to wait for it to finish (it produces a CSV file) to complete the pipeline. We definitely prefer to use message queues using NServiceBus and RabbitMQ in other parts of the system, for the reason you outlined.