Avahi/Zeroconf or Rendezvous as your Mac would know it, can be used in published DNS records (unicast) as well as the normal LAN type setup (multicast), its already a standard why don’t we use this for discovering RESTful resources?
All this would require would be a service type registered eg. rest.tcp and a flag in the TXT record naming your resources eg. “resources=/users /articles /articles/comments”.
I brought this up (quite randomly) during a talk at my local Ruby Group (ncl.rb).
Gimme your feedback?
UPDATE Forgot to add from the initial post use the :resource/new to get an empty object (to_xml or whatever)
An example of discovering unicast Zeroconf services isshift@carbon:~# avahi-browse -a -d 0pointer.de + n/a n/a Lennart’s Blog _http-rss._tcp 0pointer.de + n/a n/a tango SSH Remote Terminal 0pointer.de + n/a n/a dt115 SSH Remote Terminal 0pointer.de + n/a n/a ring2 SSH Remote Terminal 0pointer.de + n/a n/a PulseAudio Web Site Web Site 0pointer.de + n/a n/a Avahi Web Site Web Site 0pointer.de + n/a n/a Lennart's Blog Web Site 0pointer.de + n/a n/a Lennart's Photos Web Site 0pointer.de + n/a n/a Lennart's Homepage Web Site 0pointer.de
Vincent is a self-confessed geek, who's day job is as a Rails developer, outside of work he likes to play with home automation gadgets. He resides in Newcastle upon Tyne.
Sorry, comments are closed for this article.