# Implement a REST server in Julia?

**URL:** https://discourse.julialang.org/t/implement-a-rest-server-in-julia/9117
**Category:** Web Stack
**Created:** [February 16, 2018, 6:55pm UTC](https://discourse.julialang.org/t/implement-a-rest-server-in-julia/9117 "2018-02-16T18:55:37Z")
**Posts on this page:** 1
**Showing post:** 16

<div class="post-metadata">

### Author: ![Alexander-Barth](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/alexander-barth/32/3692_2.png) [@Alexander-Barth](https://discourse.julialang.org/u/Alexander-Barth)
#### Post date: [October 14, 2022, 1:20pm UTC](https://discourse.julialang.org/t/implement-a-rest-server-in-julia/9117/16 "2022-10-14T13:20:53Z")

</div>

I don’t use the REST server anymore, but I remember to have the same problem. You might want to try with `@async` or `Threads.@spawn`. There is more discussion here:

> [@Which async web server should I use?](https://discourse.julialang.org/t/which-async-web-server-should-i-use/38755/16):
>
> This is neat! I guess these co-operative ReentrantLocks are very lightweight, cheap to use.

In the end, I had one HTTP request to start the long calculation, and another HTTP request to check if it is completed.

---

_[View the full topic](https://discourse.julialang.org/t/implement-a-rest-server-in-julia/9117)._
