{"id":20661390,"url":"https://github.com/erlangbureau/octopus","last_synced_at":"2025-04-19T15:16:59.468Z","repository":{"id":31883967,"uuid":"35452612","full_name":"erlangbureau/octopus","owner":"erlangbureau","description":"Small and flexible pool manager written in Erlang","archived":false,"fork":false,"pushed_at":"2019-05-31T14:42:38.000Z","size":107,"stargazers_count":12,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-03-27T09:44:47.267Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Erlang","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/erlangbureau.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-05-11T22:06:14.000Z","updated_at":"2019-11-25T09:32:39.000Z","dependencies_parsed_at":"2022-09-10T16:20:48.917Z","dependency_job_id":null,"html_url":"https://github.com/erlangbureau/octopus","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erlangbureau%2Foctopus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erlangbureau%2Foctopus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erlangbureau%2Foctopus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erlangbureau%2Foctopus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/erlangbureau","download_url":"https://codeload.github.com/erlangbureau/octopus/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224958561,"owners_count":17398500,"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-11-16T19:09:15.450Z","updated_at":"2024-11-16T19:09:16.007Z","avatar_url":"https://github.com/erlangbureau.png","language":"Erlang","readme":"Octopus\n============\n\nOctopus is a small and flexible pool manager written in Erlang.\n\nGetting Started\n===============\n\n```erl\n\n%% Start pool\n1\u003e Opts = [\n    {host, \"jamdb-sybase-dev.erlangbureau.dp.ua\"},\n    {port, 5000},\n    {user, \"jamdbtest\"},\n    {password, \"jamdbtest\"},\n    {database, \"jamdbtest\"}\n].\n\n2\u003e octopus:start_pool(test_pool, [{pool_size, 3}, {worker, jamdb_sybase}], [Opts]).\nok\n\n3\u003e {ok, Pid} = octopus:worker_lockout(test_pool).\n{ok,\u003c0.120.0\u003e}\n\n%% Execute task\n4\u003e jamdb_sybase:sql_query(Pid, \"select 1 as one, 2 as two, 3 as three\").\n{ok,[{result_set,[\u003c\u003c\"one\"\u003e\u003e,\u003c\u003c\"two\"\u003e\u003e,\u003c\u003c\"three\"\u003e\u003e],\n                 [],\n                 [[1,2,3]]}]}\n\n5\u003e octopus:worker_lockin(test_pool).\nok\n\n```\n\nAlternatives\n============\n* [poolboy](https://github.com/devinus/poolboy) - A hunky Erlang worker pool factory\n* [pooler](https://github.com/seth/pooler) - An OTP Process Pool Application\n* [episcina](https://github.com/erlware/episcina) - A simple non intrusive resource pool for connections\n* [cuesport](https://github.com/goj/cuesport) - Simple Erlang pool of workers\n* [worker_pool](https://github.com/inaka/worker_pool) - Erlang worker pool\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferlangbureau%2Foctopus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ferlangbureau%2Foctopus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferlangbureau%2Foctopus/lists"}