astyanax icon indicating copy to clipboard operation
astyanax copied to clipboard

Workaround for issue #256

Open marko-asplund opened this issue 11 years ago • 1 comments

Here's a prototype of one approach for mitigating the side-effects of having cassandra-all.jar (and all of it's transitive dependencies) as a dependency in Astyanax. This approach is based on the assumption that Astyanax only requires classes from Cassandra implementation that don't actually have runtime transitive dependencies or those dependencies are limited. Is this a valid assumption?

An added benefit is that unwanted cassandra-all API dependencies can't be introduced in neither Astyanax nor the application without listing them explicitly.

I was able to reduce the footprint of a Cassandra 1.2 / CQL3 web application from 72 jars and 26 MB to 56 jars and 20 MB. CQL3 update and select operations seemed to work fine, but testing has not been extensive.

The classes list probably would still need to include more classes to work in other scenarios.

marko-asplund avatar Jun 26 '13 20:06 marko-asplund

I think this is a great idea

peterox avatar Oct 30 '13 02:10 peterox