{"id":19622199,"url":"https://github.com/commercetools/st-17055","last_synced_at":"2026-05-27T16:31:11.679Z","repository":{"id":52994614,"uuid":"521193039","full_name":"commercetools/ST-17055","owner":"commercetools","description":"Demonstrates ts-sdk usage with limited docker container resources","archived":false,"fork":false,"pushed_at":"2023-08-14T18:00:35.000Z","size":168,"stargazers_count":1,"open_issues_count":3,"forks_count":1,"subscribers_count":5,"default_branch":"master","last_synced_at":"2026-02-02T03:58:35.704Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/commercetools.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":"2022-08-04T08:53:43.000Z","updated_at":"2022-12-10T22:57:18.000Z","dependencies_parsed_at":"2024-11-11T11:32:15.284Z","dependency_job_id":"1fd3a0a6-3477-46fd-8fd2-4487f15d730c","html_url":"https://github.com/commercetools/ST-17055","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/commercetools/ST-17055","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/commercetools%2FST-17055","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/commercetools%2FST-17055/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/commercetools%2FST-17055/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/commercetools%2FST-17055/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/commercetools","download_url":"https://codeload.github.com/commercetools/ST-17055/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/commercetools%2FST-17055/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33575510,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-27T02:00:06.184Z","response_time":53,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-11T11:26:33.837Z","updated_at":"2026-05-27T16:31:11.662Z","avatar_url":"https://github.com/commercetools.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ST-17055\nDemonstrate how to use two clients `concurrently` and `consecutively` in a docker environment with limited container resources.\n\n## Docker specifications\n\n```ts\nNodeJs Image: node:16.0.0\nCPUs: 0.5\nMemory: 512m\n\n// see docker-compose file\n```\n\n## Setup Instructions\n\n- Ensure `docker` and `docker-compose` are both installed and running on host machine\n- Create a `.env` file in the root directory\n- Enter the following values into the created `.env` file \n\n```bash\n#.env\nCTP_PROJECT_KEY=\n\nCTP_CLIENT_ID_1=\nCTP_CLIENT_SECRET_1=\n\nCTP_CLIENT_ID_2=\nCTP_CLIENT_SECRET_2=\n```\n\n## Usage Instruction\n\n### Concurrent execution\n- Navigate into the `concurrent` directory\n- Run `docker-compose up`\n\n### Consecutive execution \n- Navigate into the `non-concurrent` directory\n- Run `docker-compose up`\n\n\n## Client statistics\n- Look into the `.data` directory for the stats of the finished execution\n\n\n## Visualize the stats\n- Open the `index.html` file in your favourite web browser and select the `.json` stats files in the `.data` directory\n- Stats files are located in the `.data` directory contained within the `concurrent` and `non-concurrent` directory respectively.\n\n_Note that these files (with filenames corresponding to project `clientId`) are mounted from the container hence will only be available after a successfully `docker-compose up` command execution_\n\n## Screenshots\n\n_concurrent_\n\n![concurrent](benchmark/concurrent.png)\n\n![docker-stats](benchmark/docker-stats.png)\n\n\u003c!-- _stats_ --\u003e\n\n\n_consecutive_\n\n![concurrent](benchmark/consecutive.png)\n\n![docker-stats](benchmark/docker-statss.png)\n\n\u003c!-- _stats_ --\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcommercetools%2Fst-17055","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcommercetools%2Fst-17055","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcommercetools%2Fst-17055/lists"}