Hi Joao,
If Cloudfront collector satisfies your business requirement then by all means stick to it. Cloudfront is simple and reliable, it's powered by Amason's CDN. If you are not interested in cross-domain tracking and are not implementing complex custom events and contexts, Cloudfront collector should serve you well.
One might find the following disadvantages though. Cloudfront collector:
- Does not support POST requests (only GET)
- Logs could be delayed by more than 1 hour, sometimes up to 24 hours (according to Amazon).
- And as mentioned before, it does not support cross-domain tracking
The first item is important when you send custom events/contexts. The GET request is limited by 2048 characters. Thus if your tracker sends a large amount of data then it could be an issue.
Clojure collector address this limitation by
- Allowing to send data via POST (theoretically unlimited size) in addition to GET.
- The logs are provided by Tomcat and rotated to S3 bucket on hourly bases.
- Sets cookies server-side thus enabling cross-domain tracking (3-rd party cookies).
Clojure collector is also scalable but by means of Amazon's Elastic Beanstalk (as opposed to CDN) technology.
You might also be interested in reading
this blog article devoted to Clojure collector.
Hopefully this answers your question.
Regards,
Ihor