IBM / ibm-cloud-functions-serverless-apis

Create a serverless, event-driven application with Apache OpenWhisk on IBM Cloud Functions that executes code in response to HTTP REST API calls.
https://developer.ibm.com/code/patterns/build-serverless-api-handlers/
Apache License 2.0
31 stars 40 forks source link

Update to use Cloudant instead of MySQL #86

Open krook opened 5 years ago

krook commented 5 years ago

When I first created this, I used a relational database to show the REST CRUD mapping for a system many developers were already familiar with. That made sense to me from an API point of view.

But, to make this truly serverless and auto-scalable, the backend should be as well. Updates will be a little more complex in Cloudant, but that's the only downside. It also has the benefit of being Lite account compatible.

FYI @dokun1 @jthomas

dokun1 commented 5 years ago

Having just delivered this lab to a client using MySQL, I'd be bummed if it changed soon! I don't disagree, though. I just wish Cloudant had an easier API to work with...or we just offered a free-tier of it 🤔