I was pretty excited when I saw that the New York Times Tech team open-sourced their Microservice Toolkit named Gizmo. Its goal is to make microservice creation very simple by giving us flexible packages ready to be used. Let’s make a simple geocoder microservice with Gizmo.
Let’s geocode an IPv4, a real address and foobar via the ChainProvider with FreeGeoIpProvider and GoogleMapsProvider with the CurlHttpAdapter using the GeoJsonDumper dumper. Then we need to make the Bernard Client with the PredisDriver because we will use Redis as a persistent engine. Our geocoding messages are quite simple objects so we will use the NaiveSerializer. Then configurations change if it’s a producer or a consumer. We will look closer later.
Do you know Trustpilot ? It’s a growing company which won the Danish Startup Awards 2013. This PHP5+ library is a wrapper which helps you to interact with the Trustpilot Developer Feed. The point of this library is: to avoid TrustBox which is not good for you SEO to provide a fluent API (avoid stdClass) to implement an easy cache layer Basically, Trustpilot updates review feeds about every 5 hours (information sent by their support) and hosts them at Amazon S3.
Version 1.0.0 is released! – DigitalOcean is built for Developers, helps to get things done faster and to deploy an SSD cloud server in less than 55 seconds with a dedicated IP and root access. Read more. 2 PHP libraries exists which are Dropper and DigitalOcean-PHP-Class but they are not in packagist :S For my own needs I made a library which can be installed via Composer. You can find it here.
Geotools supports now Redis, MongoDB and Memcached as cache engine. Read more in github – Well, Geotools is yet another project about geocoding tools, kit, library etc… Yes, but if you are a user of Geocoder you will appreciate it - I hope :) I started this, first of all, for my own needs and then because I was thinking how I could implement an easy way to batch geocoding and reverse geocondig requests in serie and especially in parallel.