{"repo":"shalzz/ethereum-worker","free":true,"listed":false,"github":"https://github.com/shalzz/ethereum-worker","clone":"git clone https://github.com/shalzz/ethereum-worker.git","description":"A caching layer for an ethereum node using Cloudflares CDN and Cloudflare workers","language":"TypeScript","stars":37,"topics":["ethereum","geth-node","ethereum-node","json-rpc","infura","ethereum-node-api","cache","workers","cloudflare-workers","argo-tunnel"],"license":"MIT","category":"blockchain-web3","readme_excerpt":"Ethereum worker Run your own Ethereum node with CDN caching on a Raspberry Pi or the cloud About A scaling solution for Ethereum nodes by caching responses using Clouldflares technologies like Argo tunnels and Cloudflare workers. This is very similar to the official Cloudflare Ethereum Gateway service provided by Cloudflare [here][1] but allows you to run and configure your own geth or parity node and put it behind a global edge computing network with robust caching facilities. Philosophy With the immutable property of blockchains and a block based model it is easier to aggressively cache a response without worrying about invalidating a cache on updates/writes within a block rather than indexing individual transactions and blocks to store in a database which are unlikely to change save for the latest few blocks (80-100 for ethereum) to account for a chain re-org. Which is why we, among others like Cloudflares Ethereum Gateway service, have decided to go with this approach. Demo We have a demo worker running that you can use to quickly try out how it works at: https://ethereum-worker.8bitlabs.workers.dev For example, query the web3 clientVersion using curl Try it for free Cloudflare provides free modes of both the services we will be using. [Free Argo tunnels][2] [Free workers with worker.dev][3] Install To deploy a Cloudflare worker we need to install the wrangler CLI tool from Cloudflare. Follow the instructions here to [install][4] it on your machine. Once you have wrangler","default_branch":null,"files":null,"tree":[],"storefront":"/r/shalzz","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/shalzz/ethereum-worker/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}