[zeromq-dev] a more modern, Java-idiomatic jzmq/jeromq API

John Watson jkwatson at gmail.com
Wed Feb 6 18:59:41 CET 2013


I've been chatting with Trevor offline, and we both believe that this is
the way to go.

Jeromq should be a project that *only* implements the underlying protocol,
basically a drop-in replacement for the low-level native jni wrappers that
currently are in the jzmq project.

Then, the "high level" APIs (be that the older c-like JZMQ, or whatever new
API that we come up with), can be in a separate project that can live on
top of either protocol implementation.

So, the end state of the re-organization would be 3 repositories:

1) JNI wrappers for the zeromq c-code.
2) Java implementation of the zeromq protocol
3) High level java APIs (JZMQ for now, but new APIs as well) which can run
on top of either of the above.

Of course, it is critical to keep 1&2 above to have precisely the same API,
so that the high level code can run on top of either.

I don't know who exactly would have time to do this project splitting, but
I think it's important, so we don't have 2 copies of jzmq (high level APIs)
floating around, like we do today.

Comments?

John



On Wed, Feb 6, 2013 at 9:13 AM, Pieter Hintjens <ph at imatix.com> wrote:

> Personally I'd reuse JZMQ and make the low-level API a part of the new
> project. Over time you probably want to implement the HL classes
> directly over libzmq, and you can eventually deprecate the low-level
> API totally.
>
> -Pieter
>
> On Wed, Feb 6, 2013 at 5:21 PM, Trevor Bernard <trevor.bernard at gmail.com>
> wrote:
> > Any naming suggestions for the project?
> >
> > On Tue, Feb 5, 2013 at 9:05 PM, Trevor Bernard <trevor.bernard at gmail.com>
> wrote:
> >>> If you guys define this new API, which I suppose will be implemented
> atop jzmq, we could also add it as a separate package to jzmq itself. Or
> maybe it should be a separate project on github. Anyway, I am open to
> anything we all agree on.
> >>
> >> I'm OK with either option. John has already made a couple of
> >> suggestions in the gist I posted earlier.
> > _______________________________________________
> > zeromq-dev mailing list
> > zeromq-dev at lists.zeromq.org
> > http://lists.zeromq.org/mailman/listinfo/zeromq-dev
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20130206/dfe24afe/attachment.htm>


More information about the zeromq-dev mailing list