Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Trello REST API Compression?

Rasmus Wulff Jensen
Community Champion
December 25, 2023

Hi, I was wondering if there are any options to enable response data compression? I know there is various ways to reduce what data comes back, but due to the nature of the data, it would benefit hugely in payload size if compression was used (assuming the servers can compress the data fast enough)... Has this already been considered or hidden as an option somewhere?

1 answer

0 votes
Sunny Ape
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 26, 2023

Hello @Rasmus Wulff Jensen 

There are no secret parameters or hidden functions to turn on any sort of compression for any 'data' in Trello's REST API responses that I've ever heard of.

Given that the largest binary data object you can download from Trello's REST API would be an attachment, the largest size is 250Mb and is stored in an AWS S3 data centre with potentially massive bandwidth capacity, why would Atlassian bother?

IMHO, GETting files of that size stopped being a concern decades ago.

Rasmus Wulff Jensen
Community Champion
December 26, 2023

I'm not talking about the attachments here, but instead the json payload returned from get requests (example Get All Cards of a board)... On a big board with example 2000 cards, that json can be up to 10mb big as raw JSON while zip-compressed is only 1 mb... So it is the frequent repeat reads of such data that would benefit from compression over infrequent attachment downloads

Sunny Ape
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 26, 2023

I regularly get batches of 1,000 cards, with all the fields, from various Trello instances. With a decent connection to the internet, it takes less than 5 seconds. That's 5 WHOLE SECONDS Rasmus for the largest query and pure JSON response scenario you are describing.

Personally, at those time scales, the whole topic of caring about the payload size becomes a moot point for me, but if you feel the need to press on, raise it as a feature request.

Have fun.

Rasmus Wulff Jensen
Community Champion
December 26, 2023

Why settle for 5 seconds when it with a "tiny" thing like a compression tweak it might take 2-3 seconds and a better user experience... And save Trello the egress... Only thing that would be against it would be if the API Server have too high memory or CPU usage to deal with the compressing of the data.

Sunny Ape
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 26, 2023

I found JRASERER-27378 from a decade ago, where someone requested having the REST API of Jira Server support compressed responses. A total of 2 whole people in the world ever watched that issue and not a single other person said they were affected by it.

So, given that not a single other person on the planet was interested in Atlassian's primary, corporate level issue management platform having that functionality, and Atlassian closed the feature request due to lack of interest, what do you think the chances are Atlassian will expend the time, money and effort to add that functionality to the REST API of Trello, their basic, 'entry level' issue management platform?

Only thing that would be against it would be if the API Server have too high memory or CPU usage to deal with the compressing of the data.

You probably have your answer right there. Increased CPU load incurs a measurable cost increase for Atlassian. Plus, there are sometimes issues with handling compressed data through proxies and gateways, plus the processing overhead of decompressing the data stream on the receiving end. The sums probably just don't add up for an environment like Trello and the user expectations.

Anyhow, enough of the tete-a-tete and me rationalising my opinions. You're welcome to keep beating your drum as loudly as you want :)

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events