HTTP 200, 201 & 202
Cloudant Blog
by Glynn Bird
1y ago
When a Cloudant operation succeeds, it will reply with an HTTP code that is between 200 and 300. Sometimes a client application might see a 200 response and in other circumstances a 201 or 202 response. This blog post explains the difference between these response codes. Photo by Kenny Eliason on Unsplash HTTP 200 The HTTP 200 response is the classic HTTP response that means “OK”. It can can be found for most operations that fetch documents singly or in bulk: Fetching a document by id Listing documents in a database Querying MapReduce views Querying using a selector Querying a search index ..read more
Visit website
Taxi Service
Cloudant Blog
by Glynn Bird
1y ago
We’ve all used taxi or ride-sharing services where the customer uses a mobile app to define the start and end point of their journey, then a driver chooses the job and makes their way to the start point. Such applications are complex distributed, real-time systems with data originating from: The customer (start & end points, current location, ride preferences). The driver (current position, photographs). The taxi company (billing etc). Elsewhere (traffic conditions, mapping, route planning) These actors are expecting that data can be shared between them from disconnected databases over p ..read more
Visit website
Simple Geospatial Queries
Cloudant Blog
by Glynn Bird
1y ago
In this blog post I’ll show how to perform basic Geospatial queries using standard Cloudant secondary indexes: Find documents within a “rectangle”. Find the nearest. Photo by Adolfo Félix on Unsplash The data To demonstrate, I’ll use a dataset containing GeoJSON - an industry-standard JSON representation of geographical content. My database contains a number of “features” represented by a decimal latitude,longitude point representing the WGS84 coordinate of the feature. Other attributes of the feature are stored in the properties object. { "type": "Feature", "geometry": { "type ..read more
Visit website
Indexing with the Cloudant Dashboard
Cloudant Blog
by Glynn Bird
1y ago
The Cloudant dashboard gives new and experienced Cloudant users the opportunity to add, edit and delete documents while refining the indexing and querying options that best suit their application’s use-cases. Photo by Zach Wiley on Unsplash In this blog post we’ll set up some simple indexes using the dashboard and see how each of Cloudant’s querying mechanisms work. The data set Let’s first create some sample data representing books in a library: { "_id": "BXP9G5ZQY9Q4EA13", "author": "Dickens", "title": "David Copperfield", "year": 1840, "pages": 723, "publisher": "Penguin ..read more
Visit website

Follow Cloudant Blog on FeedSpot

Continue with Google
Continue with Apple
OR