[openstack-dev] [Oslo] jsonutils support for datetimes
Joshua Harlow
harlowja at yahoo-inc.com
Mon Jun 3 21:36:02 UTC 2013
Just interesting to me that they seem to be pretty similar :-)
Both have a concept of types and fields and schemas, both can be used for
rpc and so-on.
On 6/3/13 12:36 PM, "Russell Bryant" <rbryant at redhat.com> wrote:
>On 06/03/2013 01:41 PM, Joshua Harlow wrote:
>> You guys seem to be getting into an area where avro has done a lot of
>>work
>> here ;)
>>>> http://avro.apache.org/docs/current/spec.html#schemas
>>>> {
>> "type": "record",
>> "name": "LongList",
>> "aliases": ["LinkedLongs"], // old name for this
>> "fields" : [
>> {"name": "value", "type": "long"}, // each element has a
>> long
>> {"name": "next", "type": ["LongList", "null"]} // optional next
>>element
>> ]
>> }
>>>>>> That starts to look any awfully lot like what u might be trying to do ;)
>>>> An example of the datetime issue (still unresolved sadly)
>>>> https://issues.apache.org/jira/browse/AVRO-739
>>>> {
>> "type": "record",
>> "name": "org.apache.avro.lib.Date",
>> "fields": [
>> {
>> "name": "time",
>> "type": "long"
>> }
>> ]
>> }
>>>>>> I wonder if we should start looking at avro and its usage in openstack?
>>Seems like massive overkill. What we needed to do this in nova is
>already implemented, wasn't that bad to do, and maintains backwards
>compatibility with all of the existing rpc code.
>>--
>Russell Bryant
>>_______________________________________________
>OpenStack-dev mailing list
>OpenStack-dev at lists.openstack.org
>http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
More information about the OpenStack-dev
mailing list