Transit is noticeably faster than EDN. I cannot recommend to use JSON
between a clojure backend and a clojurescript application, it's just
simply too much work to get everything right, entering dates, big
decimals, UUIDs...

/Linus

2015-09-04 18:37 GMT+02:00 Brandon Adams <[email protected]>:
> Last time I checked, EDN was slower than JSON browser-side. I don't have any
> numbers on that, but it never affected the SPA I wrote and used EDN with. It
> was nice being able to send tagged values and sets, which are both things
> json doesn't have.
>
> Have you looked into Transit? It seems to offer a lot of the benefits of EDN
> without taking much of a performance hit. It's also a little more portable
> across other languages (although you said this doesn't matter right now).
>
> As far as switching, it's probably just middleware that needs swapping out
> and your mimetype that needs to change in cljs-http or cljs-ajax. EDN works
> as a superset of JSON using most of the common ring middleware. If you want
> to begin taking advantage of EDN features, you won't have to worry about how
> to map various record types or custom types into JSON anymore (although you
> obviously have to have a tagged reader implementation registered in the
> browser to do something with them).
>
> On Fri, Sep 4, 2015 at 10:28 AM, Jonathon McKitrick <[email protected]>
> wrote:
>>
>> I have a basic SPA app using JSON for client/server communication.  I'm
>> considering switching to EDN.
>>
>> * Is there any reason I should consider staying with JSON, assuming this
>> API will not be consumed elsewhere?
>>
>> * How complex is the changeover on both client and server sides?
>>
>> * Are there any other caveats I might want to consider?
>>
>> --
>> Note that posts from new members are moderated - please be patient with
>> your first post.
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "ClojureScript" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> To post to this group, send email to [email protected].
>> Visit this group at http://groups.google.com/group/clojurescript.
>
>
> --
> Note that posts from new members are moderated - please be patient with your
> first post.
> ---
> You received this message because you are subscribed to the Google Groups
> "ClojureScript" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/clojurescript.

-- 
Note that posts from new members are moderated - please be patient with your 
first post.
--- 
You received this message because you are subscribed to the Google Groups 
"ClojureScript" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/clojurescript.

Reply via email to