Serverless Lambda Dynamodb API

This post is about how to terraform up a serverless, scalable and resilient lambda API. I am using the 2019nCov-api as an example. In addition, we will have a look at terraform’s built-in functions to make a more reusable modules for api gateway and lambdas. 前面几篇都是写dev的, 今天这篇来写云架构和terraform. 如何用AWS api gateway,lambda和dynamodb做一个轻巧,可扩展的适应性强的数据接口(p.s. serverless, scalable and resilient 这个我不知道该怎么翻, 反正就是这个☁️云架构精致,小巧且耐用) Use Case 用例 The use case is I want to build a simple API to allow user to retrieve coronavirus data.
Read more →

Map Data Visualization

This post is about what I have learned about visualizing data from 2019nCov-api. In order to visualize the data I will need to get the latitude-longitude reference. And I found two interesting APIs. Baidu Map vs Google Map. The coordinate systems is actually quite interesting. Baidu Maps uses a variant of web Mercator projection for slicing map data into tiles with an underlying latitude-longitude reference - BD-09 coordinate system while the Chinese government is using GCJ-02.
Read more →