Comments (5)
Hi Scott, have you confirmed that this is a problem with Faraday specifically and not DDB / your DDB configuration?
Could you possibly try check your write performance against DDB local directly? Faraday is a very thin layer over the DDB API; barring bugs - it shouldn't significantly impact the perf you'd see against the Java API.
Disclaimer: I've never used DDB local myself.
from faraday.
Also, could you please clarify what intro.md is / what the samples look like?
from faraday.
Another idea might be to checkout faraday and run the tests in local mode. Seeing how fast they run might help narrow down the problem!
from faraday.
Hi,
I should've been more clear. I'm pretty certain the problem is NOT with Faraday, and maybe I shouldn't have polluted your issue tracker with Dynamo issues :). However, Amazon has been unresponsive and several other people online are reporting similar write speeds. I figured you had probably tested the code using Local, and was wondering if there was some configuration (either in the Client API or Dynamo Service) that could improve it.
By intro.md I mean the intro on this github page. I tested using the sample (far/put-item client-opts
:my-table...etc.
I've since given up on dynamo and moved to mongo, and now my write performance is nearly 500 x faster (from 120 ms per item to 250 microseconds per item) on the same box. (even with the most conservative mongo writeconcern settings). That's why I figured there must be something trivially wrong with my dynamo setup.
Thanks.
from faraday.
I would guess that this is a config issue, but I'm not sure. In any case, I'd note that DDB local is (afaik) intended for development and testing purposes; not for use as a production database itself. It's conceivable to me that they'd intentionally even simulate some network latency by default, but you or I would need to look at the docs to check.
I'd add that even if it worked as a production local DB, you'd be nullifying most of the point of using DDB in the first place. If you're not looking for the scaling / services aspect of DDB, then better choices exist for a local DB. Not sure what your actual requirements are, but you may also want to investigate Riak and PostgreSQL. I'm not a fan of MongoDB, but that's certainly also an option if you're satisfied with it and it fits your particular requirements.
Best of luck, cheers! :-)
from faraday.
Related Issues (20)
- CI integration HOT 5
- Remove support for `:expected` HOT 3
- attribute_not_exists not respected consistently HOT 3
- Support for Streams HOT 8
- missing ScanIndexForward option with far/scan HOT 1
- Request: custom keywordization routine HOT 3
- Is the scan function safe for large tables? HOT 7
- Upgrade to 1.11.16+ of aws-sdk-java for task-level IAM role support in AWS ECS HOT 9
- Add support for DynamoDB Transactions HOT 6
- Upgrade to 1.11.459 of aws-sdk-java for management of On Demand tables
- Upload all doc versions to http://taoensso.github.io/faraday/{version}
- Porting to AWS SDK v2 HOT 16
- missing page-size/max-result-size option with query HOT 1
- Support empty strings HOT 4
- not listing tables HOT 14
- Setting `region` in client-opts causes ClassCastException
- String index names cause type error HOT 3
- Local docker example from readme only with `-p 8000:8000` arg HOT 1
- Possibly confusing dependencies found HOT 3
- FYI: have pushed some superficial changes HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from faraday.