This is a page that contains the resources for GeoDashboard Refactoring.
Config file for Parser
This is evaluated in terms of python
Possible config file formats
https://martin-thoma.com/configuration-files-in-python/
- Python Configuration File (.py)
- python library: no need, just import
- problem; it's not genetic format; and easy for others to add actual python code in the config file
- JSON
- python library: built-in json
- problem: no comment preservation, the order of keys can be changed (if you rewrite it)
- YAML
- http://stackoverflow.com/questions/3444436/configobj-configparser-vs-using-yaml-for-python-settings-file
- python library:
- pyYAML : no comments preservation, the order of keys can be changed (if you rewrite it)
- ruamel.yaml: overcome the problems of pyYAML
- INI
- python library: built-in ConfigParser, ConfigObj
- problem:
- no complex structures with lists of unnamed elements containing mappings/dictionaries
- no comment preservation, the order of keys can be changed (if you rewrite it)
- XML
- python library: many python xml library
- problem:
- cumbersome to edit the file itself.
Possible choice: YAML
- python Library: ruamel.yaml
Caching API
Testing and looking in to caching technology for RESTful API
Useful articles
- Varnish vs Squid: https://www.quora.com/What-is-the-fundamental-difference-between-varnish-and-squid-caching-architectures
Varnish
- Main site: https://www.varnish-cache.org/
- Monitoring (web UI) the varnish: http://munin-monitoring.org/ with Varnish plugin (https://github.com/munin-monitoring/contrib/tree/master/plugins/varnish4)
Memcached
- Main site: http://memcached.org/
Redis
- Main site: http://redis.io/