8:55 AM ·

Migrating off Blogger: what actually changes

Everyone assumes a platform move means starting from zero. In practice the content, the domain, and the audience are the hard parts to preserve, the theme is the easy part.

The real work is making sure nothing that already exists quietly disappears: the archive history, the labels people search by, the badges and credentials in the sidebar, the comment threads on old posts. A new theme is just a wrapper around all of that.

Why our retry logic made the outage worse

8:54 AM ·

Why our retry logic made the outage worse

placeholder

Three minutes into the incident, the dashboards looked worse than when we started. Not because the database recovered slower, but because every client that failed a request was now retrying it, immediately.

Most retry logic starts life looking simple: catch a failure, wait a fixed amount, try again. It works fine in isolation. It fails badly under load, because every failing client synchronizes its retries against the same recovering service, a thundering herd generated by the very code meant to add resilience.

Exponential backoff with full jitter turned our recovery time from eleven minutes into ninety seconds, without changing anything on the database side.

4:06 AM ·

Roll back the result of truncate command

How many times it has happened that somebody asks u a difference of Truncate and Delete,Atleast i am the person who used to say the very first point is that "TRUNCATE CAN NOT BE ROLLED BACK" untill i came across the blog post of Pinal Dave

So,the best way to understand any point is start with sample,here what we will do is we will create one table and we will create one transaction and under which we will be doing our truncate thing...and finally we will observe the result

Lets us start it by creating sample table and our transaction like following as shown below


CREATE TABLE temp (Name varchar(50))
INSERT INTO temp SELECT 'Moe'
INSERT INTO temp SELECT 'Larry'
INSERT INTO temp SELECT 'Curley'


BEGIN TRAN
   SELECT * FROM temp
   TRUNCATE TABLE temp
   SELECT * FROM temp
ROLLBACK TRAN
   SELECT * FROM temp
   
DROP TABLE temp


Now if you just copy and paste this above in your query editor and hit F5 (RUN),you would be surprise to see that even if you have performed TRUNCATE operation on your table,your data are still available at the end of transaction if we ROLLBACK

I was also got the feeling of learning something new with this helpful post by Pinal,which inspired me to write this post,so that we can use it for further reference

i hope this post is larning for you people as well

comments are welcomed...:-D