{"id":20159892,"url":"https://github.com/diogok/klj-api","last_synced_at":"2026-04-29T09:31:35.887Z","repository":{"id":66679580,"uuid":"199650693","full_name":"diogok/klj-api","owner":"diogok","description":"Demo Clojure API","archived":false,"fork":false,"pushed_at":"2020-05-24T09:08:54.000Z","size":44,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-02T13:09:31.912Z","etag":null,"topics":["clojure","docker","graalvm","native-image"],"latest_commit_sha":null,"homepage":null,"language":"Clojure","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/diogok.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-07-30T12:49:40.000Z","updated_at":"2023-01-28T10:18:44.000Z","dependencies_parsed_at":"2023-04-13T11:04:03.820Z","dependency_job_id":null,"html_url":"https://github.com/diogok/klj-api","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diogok%2Fklj-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diogok%2Fklj-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diogok%2Fklj-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diogok%2Fklj-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/diogok","download_url":"https://codeload.github.com/diogok/klj-api/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241597694,"owners_count":19988298,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["clojure","docker","graalvm","native-image"],"created_at":"2024-11-14T00:10:51.845Z","updated_at":"2026-04-29T09:31:30.843Z","avatar_url":"https://github.com/diogok.png","language":"Clojure","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Demo Clojure Server project\n\nJust to keep up to date with current frameworks.\n\n## Dependencies\n\n- [Clojure deps tools](https://clojure.org/guides/deps_and_cli)\n\n## Featuring\n\n- Clojure 1.10\n- Dockerfile with multistage build\n- Dockerfile with with native-image using graalvm\n\nThe docker image use openjdk 14 with ZGC for low latency GC set to 85% of RAM available to the container.\n\nThe native docker image uses graalvm with Java 11, and has minimal size.\n\n### Native using GraalVM\n\nA few notes on non production or limited environments:\n\n- Java docker image comes at 430MB and native image at 23MB\n- Initial memory usage of java is at 150MB while native is at 3MB\n- After load memory usage was similar, with native usig about 10% more memory\n- Under load, the java version handler more requests\n- The benchmark was very limited\n- Tracing is not working on native\n\n### Utils\n\n- environ for config\n- clojure.logging using log4j\n- prometheus metrics\n- opentracing with jaeger, zipking or log\n\n### HTTP\n\n- Ring\n- jetty (http)\n- reitit for routing\n- cheshire for json\n\n### Environment configurations:\n\nTODO\n\n## Tasks\n\n`clj repl` start a generic REPL\n\n`clj -A:jar` to create a jar\n\n`clj -A:uberjar` uberjar standalone\n\n`clj run` start the server with autoreload\n\n`docker build -f Dockerfile -t diogok/klj-api .` to build docker image\n\n`docker build -f Dockerfile.native -t diogok/klj-api:native .` to build graalvm native docker image\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdiogok%2Fklj-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdiogok%2Fklj-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdiogok%2Fklj-api/lists"}