Description
The current implementation provides a monolithic driver where the AST and the communication with the server are in the same module.
I feel that the code responsible for talking to the server should not be bundled with the AST code (and maybe other separations should be added too, but I've not digged into the various concerns to produce helpful ideas here).
In our software, we have a general querying layer which produces ReQL expressions. These are then serialized and passed to a querying engine, which runs them agains the RethinkDB server. In this scenario, the general querying layer needs to include the driver as a dependency in order to create the ReQL expressions. And this looks like a code smell. Only the querying engine, which needs to talk the the server, should require the driver. The higher level abstraction should be able to only use the AST portion of the library.
What do you think? Am I overly concerned ;-) about this separation of concerns?
Activity