How to Cut Your AWS SQS Costs Without Redesigning Your Architecture

https://hackernoon.imgix.net/images/GKMDC80avThn4WCIH2KxmeCMx9o1-f782bxk.png

SQS is a very popular and cheap service from AWS which seems pretty inoffensive to your monthly bill. However, it charges per request, not per message, and that detail is where most of the waste hides. Things like racking up old and unused queues with live consumers, using FIFO indiscriminately and being careless about polling will surely make AWS very happy and your pockets lighter. The good news is: there are a few ways which will help you save some money.

Enable Long Polling

By default, SQS uses short polling: your consumer calls ReceiveMessage, SQS answers immediately (even with an empty response), and your consumer calls again. Every one of those calls are billed, including the empty ones. A worker polling in a tight loop can easily generate millions of requests per month just to hear "nothing new".

With long polling, SQS holds the connection open for up...

Copyright of this story solely belongs to hackernoon.com. To see the full text click HERE

Read more

https://cdn.mos.cms.futurecdn.net/vqC2P3Yd6xwVstjW8G9DQb-1920-80.jpg

Russia cracking down on drone usage as it makes ERA-GLONASS navigation tech mandatory — GPS rival can monitor up to 1 million drones on land, water, and in the air in real time

* Russia will reject flight plans from October 1 for civilian drones over 250 grams that are not connected to its ERA-GLONASS tracking system * ERA-GLONASS is Russia's eCall-style emergency telematics platform that effectively functions as a clearinghouse for tracker data * Officials are pitching the system as a way to