1
0
Fork 0

Update DATA_API.md

master
Philip O'Toole 7 years ago committed by GitHub
parent 9f688f4b3b
commit f98cb08d0c

@ -113,7 +113,7 @@ curl -XPOST 'localhost:4001/db/execute?pretty&timings' -H "Content-Type: applica
## Sending requests to followers
If you send a HTTP request to a node that is not the leader of the cluster, the node will respond with [HTTP 301 Moved Permanently](https://en.wikipedia.org/wiki/HTTP_301) and include the address of the leader in the response as the `Location` header in the response. It is up the clients to re-issue the command to the leader.
This choice was made, as it provides maximum visibility to the clients. For example, tf a follower transparently forward the request to the leader, and one of the nodes then crashed during processing, it may be much harder for the client to determine where in the chain of nodes the processing failed.
This choice was made, as it provides maximum visibility to the clients. For example, if a follower transparently forward the request to the leader, and one of the nodes then crashed during processing, it may be much harder for the client to determine where in the chain of nodes the processing failed.
## Bulk API
You can learn about the bulk API [here](https://github.com/rqlite/rqlite/blob/master/doc/BULK.md).

Loading…
Cancel
Save