# Constant CPU cost algorithm

**URL:** <https://forum.elixirforum.com/t/constant-cpu-cost-algorithm/36466>\
**Category:** Questions\
**Tags:** worker-pools, crypto, cpu\
**Created:** [December 28, 2020, 1:32am UTC](https://forum.elixirforum.com/t/constant-cpu-cost-algorithm/36466 "2020-12-28T01:32:29Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![derek-zhou](https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/derek-zhou/32/19943_2.png) [@derek-zhou](https://forum.elixirforum.com/u/derek-zhou)\
**Post date:** [December 28, 2020, 4:25pm UTC](https://forum.elixirforum.com/t/constant-cpu-cost-algorithm/36466/7 "2020-12-28T16:25:28Z")

</div>

If the job takes seconds to complete in the fast path, then you can consider to use a job queue system like:  
[https://github.com/sorentwo/oban](https://github.com/sorentwo/oban)

Let the general public to use a normal queue and paying customers to use a higher priority queue. This can scale up to many nodes.

---

_[View the full topic](https://forum.elixirforum.com/t/constant-cpu-cost-algorithm/36466)._
