[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freedesktop-dbus
Subject:    Re: REST like interface
From:       Havoc Pennington <hp () redhat ! com>
Date:       2007-10-09 16:19:43
Message-ID: 470BAA1F.9040801 () redhat ! com
[Download RAW message or body]

Hi,

Andreas Sliwka wrote:
>   Now my question: Is publishing such a REST interface feasible with dbus?
> 

I'm somewhat unclear on what you mean by "REST" here (I know what I 
might mean by REST, but people seem to use it in lots of different 
ways). In general something like what you're saying is possible with 
dbus, but I'm not sure which aspect specifically you want to be sure is 
possible.

>    I'd expect about a dozen instances of each type, so a total of less 
> than 40 interfaces would be created, is this too much?

I think you're mixing up interfaces and instances in this sentence?

There is no problem with having 40 instances, or 400. 4000 might start 
to be noticeable memory and performance wise, though if you were 
motivated you could probably patch libdbus to improve that. You can also 
improve performance by using register_fallback() to have a callback for 
a whole subtree of the object path hierarchy, and then you don't have to 
register individual object instances with DBusConnection. That can allow 
you to have zero dbus-specific overhead for instances (just use your 
existing app data structure).

>   Furthermore, I'd really appreciate some help on how to code this in 
> python ...

That I will have to let someone else help with ;-)

Havoc

_______________________________________________
dbus mailing list
dbus@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dbus
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic