Zulip Chat Archive
Stream: lean4
Topic: How to use lean --server ?
zmkm (Mar 26 2025 at 19:45):
I would like to create a backend server to interact with Lean. I noticed the lean
command has --server and --worker flags and so I wonder 1. how these work exactly 2. how to specify the server port 3. what is the JSON format for request and response 4. general tips Thanks!
Jon Eugster (Mar 27 2025 at 09:53):
You could look at this file from lean4web:
zmkm (Mar 27 2025 at 13:44):
Thanks for pointing to this link! If you had to handle say 1024 api requests / second, is it true that lean --server is faster and more memory efficient than lean --run mode? Also, is there some concurrency or parallel mechanism in Lean that allows you to batch run all these requests?
Last updated: May 02 2025 at 03:31 UTC