-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support reactive streams #1
Comments
aurelijusb
added a commit
that referenced
this issue
Apr 20, 2016
Removed old code, as actor based driver will be changed with akka streams. Simple implementation of getting ArangoDB version using Akka streams. Updated to newest ArangoDB version (2.8.7)
aurelijusb
added a commit
that referenced
this issue
Apr 20, 2016
Because of Akka http Graph Later other version should be retested
aurelijusb
added a commit
that referenced
this issue
Apr 22, 2016
For simple cases, there should be on-liners For common use, thre should be context of current database to ease developing. For complex flow graph and optimisations, there should be independent parts.
aurelijusb
added a commit
that referenced
this issue
Apr 22, 2016
aurelijusb
added a commit
that referenced
this issue
Apr 24, 2016
AragnoDB returns whole data in JSON text, split by text size (not by document boundaries) Spray-json does not support parsing as a stream HttpResponse.entity ByteString is returned whole, while TCP packets are sent separately Also, added mandatory document fields for examples, how to parse importand data into schema-less documents.
aurelijusb
added a commit
that referenced
this issue
Apr 24, 2016
Reformatted tests to better see API coverage
aurelijusb
added a commit
that referenced
this issue
Apr 24, 2016
Also added more context information to test output. Moved context parameters for easier copy of immutable values.
aurelijusb
added a commit
that referenced
this issue
Apr 24, 2016
Also reduced software code for unmarshaling and implicits.
aurelijusb
added a commit
that referenced
this issue
Apr 26, 2016
Refactored tests, so smaller parts would be documented. ScalaTest cases could be independent (e.g. run in parallel)
aurelijusb
added a commit
that referenced
this issue
May 1, 2016
Also includes example of converting custom document to Scala object.
aurelijusb
added a commit
that referenced
this issue
May 1, 2016
Also, updated documentation to better reflect ArangoDB API swagger format
aurelijusb
added a commit
that referenced
this issue
May 2, 2016
So it will be less code for common uses (scarango.Results.version -> scarango.version). Still allowing easy switch between abstraction levels (scarango.toStreams.toFutures.toAwait) Cannot have abstract interface for ArangoDB API, as return types are different and do not want hardcode whole flow as a type.
aurelijusb
added a commit
that referenced
this issue
May 2, 2016
For Await - errors thrown as exceptions For others - passed as Try[Result], so failed responses could be handled in separate stream. Moved Request and Response function to objects, so IDEs could give more usable error traces.
aurelijusb
added a commit
that referenced
this issue
May 2, 2016
Dropping scarango-macros, as it is not currently used and introduces compiler dependencies.
aurelijusb
added a commit
that referenced
this issue
May 2, 2016
To publish: See https://github.com/xerial/sbt-sonatype publishSigned sonatypeRelease
aurelijusb
added a commit
that referenced
this issue
May 2, 2016
Reactive streams #1: Minimal functionality
aurelijusb
added a commit
that referenced
this issue
May 2, 2016
API coverage, improvements and bug fixes will be in separate issue. |
2 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Problem
Using
akka
actors is good for asynchronous operations, but it too verbose for developers.Also using actor pattern, it becomes hard to understand data flow
Solution
Use akka streams for abstraction over HTTP/Request and responses
Expected result
I would like to have something like:
Source
notationFlow
notation (so errors or success could be dealt with)Final goal
I could work with data flow like a stream:
Tasks
reactive streams
back-pressure
from database to initial client_system
database could be used)v0.2.4
The text was updated successfully, but these errors were encountered: