# Production level setup for Resque on AWS

**URL:** <https://www.ruby-forum.com/t/production-level-setup-for-resque-on-aws/262440>\
**Category:** Deployment\
**Created:** [January 23, 2022, 3:49pm UTC](https://www.ruby-forum.com/t/production-level-setup-for-resque-on-aws/262440 "2022-01-23T15:49:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![vieenay](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/49beb7/32.png) [@vieenay](https://www.ruby-forum.com/u/vieenay)\
**Post date:** [January 23, 2022, 3:49pm UTC](https://www.ruby-forum.com/t/production-level-setup-for-resque-on-aws/262440/1 "2022-01-23T15:49:43Z")

</div>

We have dockerized Rails application and It is deployed on AWS(using Fargate).

Currently, we have Dev and Staging servers running on AWS. We use Resque for scheduling and queuing purpose. We do use foreman to start below processes once deployment is completed.

#Docker CMD bundle exec foreman start -f Procfile.dev-server

#Procfile.dev-server web: bundle exec rails s -p 3000 -b ‘0.0.0.0’ queues: bin/rake environment resque:work QUEUE=responsive\_tasks scheduler: bin/rake environment resque:scheduler

This setup is good and working fine till staging environment. Foreman is not recommended for Production setup and might be issue when scaling would require as all 3 processes running on same machine.

**Doubts**

How I can run all 3 different processes(web server, queues and schedulers) without Foreman once code is deployed on AWS for production?

Shall I run Resque servers on separate instance with same Rails app code?

---

<div class="post-metadata">

**Author:** ![MaxCathy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/34f0e0/32.png) [@MaxCathy](https://www.ruby-forum.com/u/MaxCathy)\
**Post date:** [July 4, 2023, 10:19am UTC](https://www.ruby-forum.com/t/production-level-setup-for-resque-on-aws/262440/2 "2023-07-04T10:19:14Z")

</div>

I see it’s been a while, but I wanted to drop in and sugges using a process manager like systemd or Supervisor to handle starting and managing the different processes. These tools provide more robust process management capabilities and are commonly used in production setups.

---

<div class="post-metadata">

**Author:** ![MaxCathy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/34f0e0/32.png) [@MaxCathy](https://www.ruby-forum.com/u/MaxCathy)\
**Post date:** [July 10, 2023, 9:48am UTC](https://www.ruby-forum.com/t/production-level-setup-for-resque-on-aws/262440/3 "2023-07-10T09:48:21Z")

</div>

In addition, I wanted to share that I came across an amazing educational opportunity with AWS Malaysia
