Claudius
9 years agoBoss
Community API v1 vs v2: Performance comparison
Currently working on moving our components to responsive we found a lot of custom components in our inventory still using sprinkles of v1.
There's a comparison on when to use community API v1 vs v2 here:
But what about the performance (=processing time) aspect? Is it worth converting custom components with lines like
<#assign dateRegistered = rest("/users/id/${page.context.user.id}/registration_time").value /> <#assign totalPosted = rest("/users/id/${page.context.user.id}/posts/count").value /> <#assign kudosReceived = rest("/users/id/${page.context.user.id}/kudos/received/count").value />
...into v2 code? Would it reduce server load and in sum make the community experience in milliseconds more responsive (as in "responding quicker"?