{"id":17825500,"url":"https://github.com/soapdog/esri-tile-cacher","last_synced_at":"2025-04-02T11:22:45.329Z","repository":{"id":146156535,"uuid":"91632225","full_name":"soapdog/esri-tile-cacher","owner":"soapdog","description":"A little microservice based on Tarantool to cache ESRI ArcGIS tiles. This is a toy.","archived":false,"fork":false,"pushed_at":"2017-05-18T02:45:18.000Z","size":178,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-04-15T03:28:30.250Z","etag":null,"topics":["arcgis","gis","lua","microservice","poc","tarantool","toy"],"latest_commit_sha":null,"homepage":null,"language":"Lua","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/soapdog.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}},"created_at":"2017-05-18T00:35:51.000Z","updated_at":"2019-07-18T14:41:36.000Z","dependencies_parsed_at":"2023-03-30T08:22:46.687Z","dependency_job_id":null,"html_url":"https://github.com/soapdog/esri-tile-cacher","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/soapdog%2Fesri-tile-cacher","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soapdog%2Fesri-tile-cacher/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soapdog%2Fesri-tile-cacher/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soapdog%2Fesri-tile-cacher/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/soapdog","download_url":"https://codeload.github.com/soapdog/esri-tile-cacher/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246803168,"owners_count":20836510,"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":["arcgis","gis","lua","microservice","poc","tarantool","toy"],"created_at":"2024-10-27T18:14:02.887Z","updated_at":"2025-04-02T11:22:45.305Z","avatar_url":"https://github.com/soapdog.png","language":"Lua","funding_links":[],"categories":[],"sub_categories":[],"readme":"# esri-tile-cacher\r\n\r\nThis is a simple [tarantool](https://tarantool.org)-based application to cache map tiles from ESRI ArcGIS.\r\nIt is built with [Lua](http://www.lua.org).\r\n\r\nIt has two storage spaces, **hot** and **cold**, the first one is stored in RAM\r\nand is very fast. The second is stored on disk and is slower. Tiles which have\r\nbeen accessed recently are moved to the **hot storage**, as they grow stale they\r\nare moved to the **cold stoage**. Currently the treshold is set to two minutes.\r\n\r\nThe collection of tiles from hot to cold storage is done using [fibers](https://tarantool.org/doc/1.7/reference/reference_lua/fiber.html) which\r\nare cooperative lightweight threads. In a real scenario, another process (or even\r\n  more than one can be used to collect tiles).\r\n\r\n### This is not a real product, this is a proof-of-concept created in couple minutes.\r\n\r\n# Requirements\r\n* Tarantool 1.7+\r\n* tarantool-fiber\r\n* tarantool-http\r\n\r\n# Running it\r\nTo run the little server use:\r\n\r\n```$ tarantool app.lua```\r\n\r\nCall it with _curl_ like:\r\n\r\n```$ curl -v \"http://localhost:8080/ArcGIS/cache/World_Street_Map/5/17/19\"```\r\n\r\nIf that tile is not cached, then it will request from ArcGIS and cache.\r\n\r\n![Screen from the app](screen.png)\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoapdog%2Fesri-tile-cacher","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsoapdog%2Fesri-tile-cacher","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoapdog%2Fesri-tile-cacher/lists"}