{"id":16732558,"url":"https://github.com/antonmi/plug_flowex","last_synced_at":"2026-03-14T15:16:25.075Z","repository":{"id":145877448,"uuid":"94816100","full_name":"antonmi/plug_flowex","owner":"antonmi","description":"Example: Simple REST API with Flowex","archived":false,"fork":false,"pushed_at":"2017-07-06T15:00:41.000Z","size":17,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-24T10:12:21.955Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Elixir","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/antonmi.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":"2017-06-19T20:03:09.000Z","updated_at":"2023-11-16T20:13:42.000Z","dependencies_parsed_at":null,"dependency_job_id":"fe8a5182-204d-4c18-94e0-21c12ee310ad","html_url":"https://github.com/antonmi/plug_flowex","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/antonmi%2Fplug_flowex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antonmi%2Fplug_flowex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antonmi%2Fplug_flowex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antonmi%2Fplug_flowex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/antonmi","download_url":"https://codeload.github.com/antonmi/plug_flowex/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248208640,"owners_count":21065203,"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":[],"created_at":"2024-10-12T23:45:35.459Z","updated_at":"2026-03-14T15:16:20.054Z","avatar_url":"https://github.com/antonmi.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PlugFlowex\n\n### Demo application demonstrating a Flowex Railway-FBP design approach\nThis is a REST API based on [Elixir Plug](https://github.com/elixir-lang/plug) library\n\n\n## Endpoints\nThere are 2 endpoints:\n\n'GET /api/:user_id'\n\n'GET /api/:user_id/posts/:post_id'\n\nThere is also 'GET sync_api/:user_id' endpoint used for benchmarking\n\n## Pipelines\nPipelines are in `lib/pipelines` folder\n- GetUserPipeline - gets user\n- GetUserPostPipeline - gets user post\n- HandleErrorPipeline - handles errors\nThere is also `GetUserSync` module in pipeline module used for benchmarking\n\n## Pipes\nPipes are in `lib/pipelines` folder. Names are descriptive.\n\nAll the error modules are in `error_pipes.exs` file.\n\n\n## Benchmarks\n`wrk -t? -c? -d10s http://127.0.0.1:4000/api/2?token=qwerty`\n#### As is\n|          | -t1 -c1 | -t10 -c10 | -t100 -c100|\n|----------|---------|-----------|------------|\n| pipeline |  4.6 K  |   15.2 K  |   14.8 K   |\n| sync     |  12.1 K |   33.8 K  |   38.4 K   |\n\n#### sleep 1ms + think 1ms\n|          | -t1 -c1 | -t10 -c10 | -t100 -c100|\n|----------|---------|-----------|------------|\n| pipeline |  0.25 K |   2.6 K   |   3.6 K    |\n| sync     |  0.25 K |   2.8 K   |   4.1 K    |\n\n#### sleep 10ms + think 10ms\n|          | -t1 -c1 | -t10 -c10 | -t100 -c100|\n|----------|---------|-----------|------------|\n| pipeline |    42   |  0.45 K   |   0.56 K   |\n| sync     |    42   |  0.45 K   |   0.58 K   |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fantonmi%2Fplug_flowex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fantonmi%2Fplug_flowex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fantonmi%2Fplug_flowex/lists"}