eclipse / jnosql

Eclipse JNoSQL is a framework which has the goal to help Java developers to create Jakarta EE applications with NoSQL.
Other
231 stars 72 forks source link

Split packages into synchronous, asynchronous, legacy, and reactivestreams #150

Closed jameschensmith closed 4 years ago

jameschensmith commented 5 years ago

I recently noticed that the JNoSQL MongoDB driver was adding the asynchronous MongoDB libraries when I only needed the synchronous libraries. This added unnecessary bulk to my JAR / WAR. I have a suggestion to split all of the libraries (drivers, mapping, communication) into synchronous, asynchronous, legacy, and possibly reactivestreams once implemented.

As an example, MongoDB has split their driver into legacy, sync, async, and even reactivestreams. By making this change, future additions will not cause additional bulk to a project built to be aimed towards microservices.

The splitting doesn't necessarily need to be project-wide, but at least for the drivers would be nice.

Open discussion is encouraged. 😊

otaviojava commented 4 years ago

Hey, @james-r-smith we finally did it. We've removed the async API from the API at least for while.