Dagalti is a dynamic proxy server that caches service responses. It is mainly used to reduce server startup time dramatically for developers who work on codebases that take too long to start locally due to the common problem of corporate headquarters <-> datacenter latency.
In short, Dagalti is meant for developers to hack on their code in a Starbucks (for example) without connecting to the corporate VPN.
0.0.1
Dagalti runs on node.js and uses the below projects to run properly
- exit-hook - Surefire way of specifying exit hooks for node processes.
- url-parse - A simple to use url parser and tokenizer.
And of course Dagalti itself is open source with a public repository on GitHub.
Dillinger requires Node.js v4+ to run.
Please follow the below steps to install Dagalti:
$ git clone git@github.com:crazysoftwarecoder/dagalti.git
$ cd dagalti
$ npm install
$ node index.js
Dagalti is running on port 32878!
Once Dagalti is installed it is time to redirect your http and https requests in your working project to the Dagalti process. This is fairly straight-forward for many platforms.
For ex. in Java to redirect all http(s)requests through a proxy, please follow this link. To redirect to Dagalti running on your machine, you would set the proxy host and port to 127.0.0.1 and 32878 respectively.
Now start your server up. All HTTP and HTTPS requests will go through Dagalti, which will proxy the message to the destination server. You will see Dagalti's console light up with all the requests that are flowing through the proxy server.
On the response, Dagalti will cache them before serving them back to your development server.
From the next time that you bring up your server, Dagalti will serve all the cached responses back, saving you tons of seconds of latency.
Note: If you have request headers that keep changing for every request even though the rest of the request remains intact, you might want to add that to config.js to ignore them for caching.
Press Ctrl + C (on *nix)
^C
$ rm .cache/.proxyCache
$ node index.js
Dagalti is running on port 32878!
Want to contribute? Great!
Please submit a PR to the master branch. It will be approved asap.
- Pretty Print Console trivia
MIT
Dagalti's etymology comes from modern day Tamizh language in India which means a person who knows nothing but establishes credibility by using his relationships with subject matter experts and relies on them for answers to complex questions.