# \#oxygenjl

**URL:** https://discourse.julialang.org/tag/oxygenjl/1141.md

[Latest](https://discourse.julialang.org/latest.md) · [Categories](https://discourse.julialang.org/categories.md) · [Tags](https://discourse.julialang.org/tags.md)

---

## [Oxygen.jl is faster than FastAPI, Flask and Rocket](https://discourse.julialang.org/t/oxygen-jl-is-faster-than-fastapi-flask-and-rocket/100389)

<div class="topic-metadata">

**Author:** [@Jose\_Diaz](https://discourse.julialang.org/u/Jose_Diaz)\
**Replies:** 9\
**Last updated:** [May 12, 2026, 12:18pm UTC](https://discourse.julialang.org/t/oxygen-jl-is-faster-than-fastapi-flask-and-rocket/100389 "2026-05-12T12:18:54Z")

</div>

Running some benchmarks ---- 1000 HTTP Requests ---- Flask Server --- 1.7611534595489502 seconds in total --- --- 0.0017611534595489502 seconds per iteration --- FastAPI Server --- 1.5010621547698975 seconds in total --…

---

## [\[ANN\] Oxygen.jl v1.1.6 (Cron Scheduling)](https://discourse.julialang.org/t/ann-oxygen-jl-v1-1-6-cron-scheduling/97291)

<div class="topic-metadata">

**Author:** [@ndortega](https://discourse.julialang.org/u/ndortega)\
**Replies:** 6\
**Last updated:** [May 4, 2026, 6:26pm UTC](https://discourse.julialang.org/t/ann-oxygen-jl-v1-1-6-cron-scheduling/97291 "2026-05-04T18:26:40Z")

</div>

Hello, everyone! Today, I’m here to introduce the latest update to the Oxygen.jl. It’s been almost a year since my last post, and I’ve been steadily working on incorporating your feedback and implementing new features t…

---

## [Serving WGLMakie Plots with Observables via Oxygen Server Having Websocket Connection to Bonito](https://discourse.julialang.org/t/serving-wglmakie-plots-with-observables-via-oxygen-server-having-websocket-connection-to-bonito/136764)

<div class="topic-metadata">

**Author:** [@Sumfun](https://discourse.julialang.org/u/Sumfun)\
**Replies:** 3\
**Last updated:** [April 18, 2026, 11:48pm UTC](https://discourse.julialang.org/t/serving-wglmakie-plots-with-observables-via-oxygen-server-having-websocket-connection-to-bonito/136764 "2026-04-18T23:48:18Z")

</div>

Challenge - Serving WGLMakie plots with observables via Oxygen using a websocket connection to Bonito. The issue is that Oxygen serves a static image without observables. It appears that the initial Session ID from Bonit…

---

## [How to structure a julia package which should also contain a REST api?](https://discourse.julialang.org/t/how-to-structure-a-julia-package-which-should-also-contain-a-rest-api/134840)

<div class="topic-metadata">

**Author:** [@DoktorMike](https://discourse.julialang.org/u/DoktorMike)\
**Replies:** 3\
**Last updated:** [January 2, 2026, 6:14pm UTC](https://discourse.julialang.org/t/how-to-structure-a-julia-package-which-should-also-contain-a-rest-api/134840 "2026-01-02T18:14:35Z")

</div>

So what I want to do: I want to build a julia package Foo.jl which should be used by users writing scripts in julia primarily. There’s also a secondary group of users who will want to use a subset of the package through …

---

## [Passing state variable to handler functions](https://discourse.julialang.org/t/passing-state-variable-to-handler-functions/119268)

<div class="topic-metadata">

**Author:** [@ehsani63](https://discourse.julialang.org/u/ehsani63)\
**Replies:** 1\
**Last updated:** [September 26, 2025, 4:23am UTC](https://discourse.julialang.org/t/passing-state-variable-to-handler-functions/119268 "2025-09-26T04:23:10Z")

</div>

A general question about Julia web frameworks like Oxygen.jl: Is there an easy way to pass a state variable as an argument to handler functions, or is relying on global variables the only option?

---

## [How to precompile Oxygen?](https://discourse.julialang.org/t/how-to-precompile-oxygen/125834)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 1\
**Last updated:** [February 12, 2025, 4:56pm UTC](https://discourse.julialang.org/t/how-to-precompile-oxygen/125834 "2025-02-12T16:56:10Z")

</div>

I am using the web server Oxygen.jl . I use it to call functions using json over http. I want to create a system image to avoid the high time-to-first-reply. My question: In the precompile script I want to start Oxygen…

---

## [How to Return a File as a Downloadable Attachment in Oxygen.jl Endpoint](https://discourse.julialang.org/t/how-to-return-a-file-as-a-downloadable-attachment-in-oxygen-jl-endpoint/122131)

<div class="topic-metadata">

**Author:** [@ehsani63](https://discourse.julialang.org/u/ehsani63)\
**Replies:** 5\
**Last updated:** [November 5, 2024, 9:06pm UTC](https://discourse.julialang.org/t/how-to-return-a-file-as-a-downloadable-attachment-in-oxygen-jl-endpoint/122131 "2024-11-05T21:06:03Z")

</div>

I’m using Oxygen.jl to implement an endpoint that retrieves data, processes it, and creates a DataFrame. I’d like the /dataframe POST method to return a downloadable file named test.csv containing the DataFrame. I tried …

---

## [OpenAPI.jl behind Oxygen.jl sometimes doesn't work](https://discourse.julialang.org/t/openapi-jl-behind-oxygen-jl-sometimes-doesnt-work/116409)

<div class="topic-metadata">

**Author:** [@qwjyh](https://discourse.julialang.org/u/qwjyh)\
**Replies:** 0\
**Last updated:** [June 30, 2024, 6:11am UTC](https://discourse.julialang.org/t/openapi-jl-behind-oxygen-jl-sometimes-doesnt-work/116409 "2024-06-30T06:11:31Z")

</div>

I’m new to web dev. I’m trying to make a relay server which receives requests from users as a server implemented with Oxygen.jl and sends requests to another server as a client which uses auto-generated client code from…

---

## [Performance issue with an API calling another API](https://discourse.julialang.org/t/performance-issue-with-an-api-calling-another-api/110976)

<div class="topic-metadata">

**Author:** [@AbrJA](https://discourse.julialang.org/u/AbrJA)\
**Replies:** 3\
**Last updated:** [June 13, 2024, 4:11pm UTC](https://discourse.julialang.org/t/performance-issue-with-an-api-calling-another-api/110976 "2024-06-13T16:11:52Z")

</div>

Hi everyone, Exploring the Oxygen package to build APIs I found this I haven’t been able to solve When I run this API (with a 150 ms sleep to simulate the time taken by a model): using Oxygen @get "/model" function(…

---

## [Tutorial: Deploying an Oxygen.jl app to Microsoft Azure](https://discourse.julialang.org/t/tutorial-deploying-an-oxygen-jl-app-to-microsoft-azure/107595)

<div class="topic-metadata">

**Author:** [@Snowy](https://discourse.julialang.org/u/Snowy)\
**Replies:** 4\
**Last updated:** [February 27, 2024, 1:06pm UTC](https://discourse.julialang.org/t/tutorial-deploying-an-oxygen-jl-app-to-microsoft-azure/107595 "2024-02-27T13:06:59Z")

</div>

Hi everyone, I’ve recently been working on a web app in Julia and wanted to share what I’ve learned as it may help those in the future. In particular, deploying an API is a new skill for me and so I thought I’d help out…

---

## [WebSockets vs Oxygen.jl](https://discourse.julialang.org/t/websockets-vs-oxygen-jl/109146)

<div class="topic-metadata">

**Author:** [@yakir12](https://discourse.julialang.org/u/yakir12)\
**Replies:** 4\
**Last updated:** [January 24, 2024, 8:53am UTC](https://discourse.julialang.org/t/websockets-vs-oxygen-jl/109146 "2024-01-24T08:53:13Z")

</div>

I’m sure I’m doing something silly and wrong, I’m just not sure what. In the following two MWE, a server is sending a 1 MB payload a hundrad times to one client, all within the same Julia session (v1.10.0 single thread)…

---

## [POST request size limit](https://discourse.julialang.org/t/post-request-size-limit/98178)

<div class="topic-metadata">

**Author:** [@sschmidhuber](https://discourse.julialang.org/u/sschmidhuber)\
**Replies:** 1\
**Last updated:** [May 29, 2023, 12:37pm UTC](https://discourse.julialang.org/t/post-request-size-limit/98178 "2023-05-29T12:37:48Z")

</div>

Hello, I’m building a web application using Oxygen (which is using HTTP.jl). Is there a way to limit the max request size for HTTP post requests? When I’m able to check the size in the request handler, the memory is al…

---

## [Extract binary file from HTTP request body](https://discourse.julialang.org/t/extract-binary-file-from-http-request-body/96322)

<div class="topic-metadata">

**Author:** [@sschmidhuber](https://discourse.julialang.org/u/sschmidhuber)\
**Replies:** 2\
**Last updated:** [March 20, 2023, 10:14pm UTC](https://discourse.julialang.org/t/extract-binary-file-from-http-request-body/96322 "2023-03-20T22:14:20Z")

</div>

Hello, I’m struggling currently with extracting a binary file from a POST request body. On the client side I submit a form with a binary file and the enctype=“multipart/form-data”, that seems to work well. On the serv…

---

## [Difference between \`include\` and \`using\`](https://discourse.julialang.org/t/difference-between-include-and-using/87795)

<div class="topic-metadata">

**Author:** [@contradict](https://discourse.julialang.org/u/contradict)\
**Replies:** 7\
**Last updated:** [September 26, 2022, 6:01pm UTC](https://discourse.julialang.org/t/difference-between-include-and-using/87795 "2022-09-26T18:01:52Z")

</div>

When using Oxygen.jl, I noticed an unexpected difference between using and include. I created a simple project using a slightly modified version of the example code in the readme. (@v1.8) pkg\> generate OxygenExample G…
