DEV Community

Cover image for 22nd weekly post, remaining ratio. Also, Log4Shell.
LongYC
LongYC

Posted on • Edited on • Originally published at longyc.com

1

22nd weekly post, remaining ratio. Also, Log4Shell.

Items of the week

  • CSS - aspect-ratio can be used to set a preferred width-to-height ratio of a box, it accepts values of <ratio> data type, e.g. 16/9. More about this CSS property is explained on MDN Web Docs.

  • AWS Lambda - the context object passed to a handler function includes a method getRemainingTimeInMillis() which returns the approximate remaining execution time before timeout. Picked that up from chapter 6 of Serverless Architectures on AWS.

  • On the week 49 of 2021, we saw a remote code execution vulnerability on the popular Java logging library - Apache Log4j. Now also known as Log4Shell, the exploit allows arbitrary Java code to be executed, more details about this on LunaSec blog.

This is a weekly bite-sized post on web app development from JavaScript to UX and technology in general. Thank you for reading and have a nice day!

Top comments (0)

Great read:

Is it Time to go Back to the Monolith?

History repeats itself. Everything old is new again and I’ve been around long enough to see ideas discarded, rediscovered and return triumphantly to overtake the fad. In recent years SQL has made a tremendous comeback from the dead. We love relational databases all over again. I think the Monolith will have its space odyssey moment again. Microservices and serverless are trends pushed by the cloud vendors, designed to sell us more cloud computing resources.

Microservices make very little sense financially for most use cases. Yes, they can ramp down. But when they scale up, they pay the costs in dividends. The increased observability costs alone line the pockets of the “big cloud” vendors.