Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Options for accessing S3/DynamoDB with C/C++ [closed]

I've been looking for a C/C++ interface to S3 and DynamoDB. I've found libaws on sourceforge that supports S3 but not dynamodb, but doesn't look like its maintained. Any pointers?

like image 268
Noah Watkins Avatar asked Apr 03 '13 19:04

Noah Watkins


2 Answers

I just came to the same crossroads myself. Unfortunately I couldn't find any reliable libraries so I'm writing it myself using POST as described:

http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/MakingHTTPRequests.html

I set up a persistent, non-blocking socket connection with AWS. I POST with send(...) and listen for responses on the AWS socket using libev, sending the client's socket to the callback so I can respond directly to users from the callback. This replicates the non-blocking calls that some of the official SDKs use, like the one for Node.js.

If you want more clarification, feel free to e-mail me: chris specificsymbol rockingdayo punctuation com

like image 76
cmo Avatar answered Oct 05 '22 06:10

cmo


For S3, there is libaws. You can also try and get the source code for WebStor, (link in the blog post), but I haven't tried that one.

DynamoDB will be tougher, as it is a newer service. Best bet is to follow Chris' suggestion and make the REST calls yourself.

like image 35
GalacticJello Avatar answered Oct 05 '22 04:10

GalacticJello