Interoperable P2P: Jxta 75
Troy writes: "This article went up today (on developerWorks) about the Open Source project called Jxta, which is a community-run attempt to build a utility application substrate for peer-to-peer applications. Anything with an electronic heartbeat can become a Jxta peer." A nice high-level overview of how Jxta is supposed to work.
Useful or redundant? (Score:2, Interesting)
Ok. i'll take a dare and assert that i'm not the only one puzzled by wether or not we even need such a thing.
Anybody with an hour or two and a good book on Perl can write a client/server package, complete with a crude protocol that allows both sides to talk. I guess what i'm getting at is, what good is an "application substrate" in this situation? If peer-to-peer sharing is by definition a specialized application meant only to communicate (and deal with) an equally specialized scorresponding part, then why bother building a "one size fits all" version in the first place? Perhaps a common protocol for P2P would be a good idea, but then again, we already have that. Its called TFTP. Or NFS, for that mattter. I've always thought that publically exported NFS shares make the best platform-independant P2P solution.
Sometimes, especially for experienced coders, it becomes tempting to want to reinvent the wheel. If you're going to set out to make something as complicated into something thats now easier to handle, cool..Go for it. But don't try and over-do something that is already simple by its very design.
By the way, if you're one of the guys building such an app, feel free to swing by System 26 [system26.com] when you're ready and have a look around. You might find something useful to include in your code to make it a little more asthetically pleasing. Plus, its free.
Cheers,
Re:Useful or redundant? (Score:2, Insightful)
In any event, building some sort of framework can be useful. If you take this logic and extrapolate it, there was really no reason to advance at all... once there is a critical mass of need for a given set of functionality, it's useful to build a abstracted service to provide it...
Re:Useful or redundant? (Score:1)
You raise a good point, but I think my argument still holds. The infrastructure already exists to handle this sort of thing. Distribution of resources across hetero networks isnt really a new idea anyway. Maybe new to people who grew up on Windows, but not for the rest of us.
Wanna share applications? No problem, add an NFS filesystem and include it in your $PATH... Want to share storage? Same answer. Wanna add available memory to your stem without a RAM upgrade? Same answer. Nothing stops me from assigning swap on my system to an NFS-mounted filesystem half a world away if I choose to. man swapon.
Cheers,
Jxta vs. Freenet (Score:3, Interesting)
Jxta seems to be a bit better at being a true P2P network without having to know the address of a node before-hand, but Freenet seems to handle bandwidth better by distributing popular files across multiple nodes as needed.
Sun is apparently trying to keep a "hands-off" posture with IP security on Jxta, while Freenet carries it one step further by making it difficult to find who posted or holds "bad" information at any given time.
So... which will ultimately be the better/prefered choice of users?
Re:Jxta vs. Freenet (Score:3, Informative)
They are not comparable. With Freenet, we are trying to achieve a very specific task - publishing data and making it available in a manner that disassociates with any physical location. The Freenet protocol works for this task, and this task only - it would not be possible to implement anything like jxta over Freenet, and nor would it be (regardless of what people who do not understand the technology may say) possible to implement Freenet, or anything like it, within jxta.
From what I understand, and while I'll disclaim that I could be wrong I did read through the specifications, jxta is basically a generalized Gnutella. To begin with, the idea seems nice enough: Why is Gnutella limited to searching for string matches, wouldn't it be nicer if messages could carry arbitrary queries so that one could use the same network to ask for "Porn jpgs matching \BIG BOOBIES\" and "2 billion computer cycles to render BIG_BOOBIES.3ds"?
Yes, it would be nicer, but then, the limitation of searches is not really Gnutella biggest problem , is it? Gnutella's biggest problem is scalability and performance, and - this is what people don't seem to want to hear - by generalizing the queries completely, you have closed the door on trying to make this any better (for searching to work without broadcast you need either sorting or (centralized) indexing - arbitrary queries are neither sortable nor indexable). And for that reason you cannot implement and network like Freenet, or Oceanstore, or Chord, or anything that even attempts to optimize routing beyond the everybody-screams-at-the-top-of-their-voice approach, on top of Jxta.
The interoperability bug that has caught certain people in regards to the group of programs called "P2" is misguided. It is like "standards" and "interoperability" has become such a holy cow in many circles that people will simply not hear the physical arguments for why interoperable fire and water simply isn't a very good idea for either.Not that it really matters - all the people I have met who are actually doing anything worthwhile in this are seem to understand this very well.
Intelligently routing generalised queries (Score:4, Interesting)
The closeness operator sounds a bit like sorting, and anything that can be sorted can also have a closeness operator, however not everything that can have a closeness operator can be sorted. There is no reason why a more general query couldn't conform to these requirements. Generally speaking it would probably require some form of "fuzzy matching" of metadata to an SQL-style query. Of course this would require some constraints on the nature of the query, but it could still be much more flexible than Freenet's current lexographic search.
Re:Intelligently routing generalised queries (Score:1)
If you require that the queries have a certain characteristic, then they are no longer arbitrary.
Re:Jxta vs. Freenet (Score:3, Insightful)
Jxta, on the other hand is shooting to be just that, a general services layer.
Big difference. Both may flourish but for different reasons. (IMHO Freenet is a very specific demonstration of a concept, but won't take off as anything much more than that...)
Re:Jxta vs. Freenet (Score:1)
Jxta seems to be a bit better at being a true P2P network without having to know the address of a node before-hand,
Only because of broadcast node announcement. That'll make the ghosts of Gnutella come back to haunt Jxta.
MY concerns (Score:1)
Jabber? (Score:2)
Thats what it looks like to me, anyway.
Java, JINI, JXTA... (Score:5, Interesting)
Sun are a strange bunch, a company where the vi v emacs wars can really kick off as two of the developers are there (Gosling for emacs, Joy for vi). JXTA is another of Bill Joy's babies, its meant to be a language/protocol independent offering for peer to peer solutions, which was originially what http://www.jini.org said they would do (Jim Waldo).
JXTA is a nice idea, and there are some good papers from JavaOne on the subject. But given that Sun's marketing might is behind J2EE will JXTA really be given a chance ?
IMO the answer is probably yes, JXTA and Java are part of a two pronged attack at next generation devices, this isn't really PC to PC type applications but device to device, most of the next generation mobiles will be running Java, some will not and most service provider cells will not, JXTA enables the bridge between the Java world of the device and the big bad world of networking to interact.
Strange how the best ideas come without marketing strategies. Java was an inhouse project which aimed for 10,000 downloads. Will the same explosion happen with JXTA in a wireless world ?
PCs suck, time to distribute.
Making the same mistakes all over again (Score:3, Insightful)
Although J2EE decided to go a different route by specifying a comprehensive list of minimum requirements [advisor.com] it is sizable enough that no two vendors currently completely implement all of the same functionality (or at least not the last time I checked).
Jxta seems to be taking the generic-ness route which from experience leads to incompatible implementations and vendor lock-in. Particularly telling where the following excerpts from the article Sounds like a journey that is starting with the wrong step to me.
Re:Making the same mistakes all over again (Score:1)
Re:Java, JINI, JXTA... (Score:4, Informative)
However, I do agree with that this is a way of attacking and going after the wireless market. Sun needs a marketing dept like that of MS, one that is aggressive and sees oppurtunity in tying things together. Let's just hope that un doesn't go too far with that ; )
Re:Java, JINI, JXTA... (Score:1)
Internet2 (Score:2)
I hope Jxta will solve that problem when both clients are behind firewalls.
Oh, the Possibilities (Score:3, Funny)
Toasty Video Goodness (Score:2)
The Video Toaster!
What, it's already been done?
On the subject of Jxta and Intellectual Property (Score:1)
In other words, to hell with it. We know all the users are just using it for pr0n and mp3s, so why not just go with the flow and hope someone else figures out a happy medium?
The problems with all this java stuff from Sun (Score:1)
2. They have problems playing nice with de facto standards. The one that pissed me off the most was their deprecation with a vengeance of get/setenv. Any OS worth its salt supports some sort of environment variable, and those that don't could have get/setenv emulated by the jre. They left people trying to deal with bizzare command lines to pass in system properties, which is very nearly a waste of time. Anywho, the cgi-bin crowd read that as "java servlets or no java" and said "no java." Java servlets/jsp are often as good a choice or better for many types of web apps, but Sun doesn't do much to cater to people who think more in perl or ssi's (php).
More JXTA info for the interested (Score:2)
It all just sucks.. (Score:1)
Jini was going to connect every device, ya.. right, and now jxta, what's that going to do make my toaster talk to my fridge. Do i really need that?
As for P2P, the only sort of half usable system was Napster (thanks RIAA for messing that up) as you could connect to people about 50% of the time, and the server based indices made searching for something so much faster. Using Gnutella sucks ass.. no one ever seems to connect properly, searching is painfully slow, data rates even though they say are fast come in at insanely slow speeds. Getting 1k/s is a good rate, Got to love getting 14.4 modems speeds on my 1mb dsl connection. Are we going backwards or forwards with this stuff ??
Try hooking up some simple pc's on a network with MS's SMB, and that just sucks too. What's that waiting 15mins if you take the server down without logging off clients, how come you can sometimes see computers and domains, and not other times. How easy is it to hack the network.
The only thing that really seems to preform is TCP/IP, your packet will get routed.. anythning build on top of that well.. we know how well stuff works now days. Any app or protocal for networking created before 1986 is pretty much garbabe.
P2P is dead, move on. (Score:2)
And no, your employer doesn't want to pay to route and transmit the bits coming out of the compute cycles you are "donating" to crypto cracking or searching for ET.
Another relevant article (Score:2)
My granddaddy (Score:2, Funny)
Anything with an electronic heartbeat can become a Jxta peer
Finally my grandfather can become a Jxta peer. Ever since we implanted that pacemaker, that's been his dearest dream. Bless his artificially stimulated heart.
Maybe now he can send messages to the microwave ovens at 7-11 that used to terrify him so.
Sun's "Community Process" ain't (Score:1)
Re:Sun's "Community Process" ain't (Score:2, Insightful)
I've been participating in JXTA since the beginning and have been impressed that Sun has truly made JXTA open source. With all the good and bad that entails.
Re:Sun's "Community Process" ain't (Score:1)
Jxta != Java (Score:1)
I have figured it out... (Score:4, Funny)
For those who don't get what Jxta is good for, don't worry, it took me a while too, but I think I have it.
Jxta is an attempt to combine XML, Java, and Gnutella. Obviously, this unholy hybrid can have only one purpose - to make a computer program so slow time runs backwards!
Jxta is not all that (Score:5, Insightful)
Jxta was created by Sun to be a "framework" for P2P networks. What exactly that means is rather vague. It appears to make basic development decisions that are better left up to indiviual projects (such as broadcast seaches). TCP/IP is really the only thing most P2P networks have in common, and even that could often be easily replaced with a diffrent underlieing protocol if it was necessary.
There are several other assumptions that Jxta makes that it shouldn't. See this article [openp2p.com] for more information.
Re:Jxta is not all that (Score:2, Informative)
Keys being that most P2P apps need some of the same basic things. in my simplistic terms:
Authentication, Security & Trust, a Capacity for dealing with a changing and non-stable network, some sort of common messaging format, etc. There's more, but I'm tired of typing.
if Jxta can provide these types of services in a useable way, then it can be very powerful...
anyway... a can of soup can be very powerful too if used properly... it all comes in the implementation. but that's my .02c
Re:Jxta is not all that (Score:3, Interesting)
My point is that Jxta is making development decisions that are best left up to implementers. For instance, the Freenet developers are never going to allow broadcast anything, but if Freenet were made within the Jxta framework, they would have to live with broadcast node announcement (despite the fact that the experimental 0.4 Freenet is getting support for a uber-efficent node announcement that scales linearly).
Imagine the possibilities... (Score:2, Interesting)
Re:Imagine the possibilities... (Score:2)
Now that's a fucking invention.
Re:Imagine the possibilities... (Score:2)
Why dont we see it? there is no demand for it... and manufacturers do not want to cooperate in any way.
I highly doubt that Timex will gladly reveal to Black and Decker how to talk to their alarmclock and vicea-versa.
the only way to get this it to make it yourself... and it really isnt that hard.
Re:Imagine the possibilities... (Score:1)
Re:Imagine the possibilities... (Score:1)
not to mention, i think this can already be done. Some coffee pot machines can be set to start brewing a particular time. Simply figure out how long it takes for the coffee to brew, and set the clock on the pot and alarm clock appropriately.
Re:Imagine the possibilities... (Score:1)
Re:Imagine the possibilities... (Score:1)
6:30 Time coffee starts brewing (Set this on coffee maker)
+ 5 minutes brewing time
= 6:35 Time to wake up (Set this on alarm clock)
who need Jxta for that....
Re:Imagine the possibilities... (Score:1)
Pictures (Score:1)
I have played around with Dia, and despite some pretty big limitations, it is still possible to create a good looking pic.
I'm sorry to rant (is it just me?) but why is Linux and Open Source documentation so devoid of pretty pictures. If they can add to a persons understanding of a product or concept I would say they are not such a waste of bandwidth, as everyone in the OSS community tends to believe.
and it has been decided... (Score:2)
Sure information wants to be free, but the interpretation of information is, rightly so, very private.
How many contradictions and paradoxes can arise from these thoughts?
JXTA Serves No Purpose for P2P Developers (Score:1)
Now, seeing as how are you probably a developer who does not work for Sun, what is the point of JXTA for *you*? What does it give you that you will find useful. Very little. If you happen to want to write a P2P app that uses the JXTA network model (basically Gnutella, but let's not quibble about that particular point) then JXTA has some code that you can use as a base for your application. You can also hack up an appropriately licensed Gnutella, Freenet, or MojoNation client if you like their arhictecture.
Chances are, however, you want a custom network architecture. If you read Sun's marketing hype, they will tell you that JXTA can be any architecture and it's open source, so it's up to you to add the components to make JXTA-Freenet or JXTA-MojoNation or JXTA-your-custom-network-architecture-here. This is technically true because JXTA doesn't actually do anything. It's basically a bunch of webservers that open connections to each other. The only thing that JXTA adds over a webserver with CGI or some form of RPC such as XML-RPC or SOAP is that it provides a few services that create a Gnutella-like network. If you're not going to use the JXTA services then JXTA adds nothing over an XML-RPC module in Apache or any of the small XML-RPC servers such as Helma.
People ask me for advice on their P2P applications all the time and never have I found it prudent to recommend JXTA for a project. However, JXTA does have one benefit, which is that if you use it in your project then Sun will give you free advertising announcing "yet another" JXTA-based project.
Whence Gnutella? (Score:1)