How Digg migration to Cassandra from MYSQL
  • Reads 8
  • Votes 1
  • Parts 1
  • Time <5 mins
  • Reads 8
  • Votes 1
  • Parts 1
  • Time <5 mins
Ongoing, First published Nov 16, 2016
Today I'm gonna share my experience when I started with Apache Cassandra... If you consider the case study of Digg: How Digg migrated their friends+diggs data set to Cassandra from MYSQL, here is the explanation.

Digg implemented their new badges feature in Cassandra, a distributed, structured key-value store. Digg adopted a traditional vertically distributed master-slave configuration with MySQL, and investigated sharding (type of database partitionin) MySQL. In the case of the traditional architecture, Cassandra has a masterless "ring" which is easy to set up and to maintain.

Since it was necessary to strand data normalization and consistency to make these methodologies work. Digg adopted to comfortable with non-relational data stores. With the consideration of HBase, Voldemort, Cassandra, Hypertable, Tokyo Cabinet/Tyrant, and Dynomite, finally migrated on to Cassandra.
Every system has its own pros and cons, but Cassandra has a good blend of all. It offers Data Partitioning, Consistent Hashing, Data Replication, Eventual & Tunable Consistency, Gossip Protocol to discover nodes, Keyspace, Column & Row -oriented data storage, so you have a bit more structure than plain key/value stores. It operates in a distributed, highly available, Cluster/Ring. 
When an item is dugg, Digg asynchronously populates Cassandra. This operation fetches the list of followers of the digging user, and every column is inserted at once, atomically in each of their buckets, under a second.
In my upcoming posts, I will try to explain Cassandra architecture and other topics.
All Rights Reserved
Sign up to add How Digg migration to Cassandra from MYSQL to your library and receive updates
or
#60apache
Content Guidelines
You may also like
SCP's SCP by ninaclaims
20 parts Complete
This is a story about love and friendship. Friendship can grow so fast, it doesn't matter how long you know that person. If it's right, it's right. Kiara has always been quite lonely. She didn't know what real friendship was like. Until she met Cassandra. Cassandra was that type of friend everyone needs and Kiara was really glad to have Cassandra. They did everything together. Kiara was really depressed before she met Cassandra. She had been bullied and picked on since as long as she can remember. There wasn't even a reason for it and that makes it much worse. After a few years of good friendship, Kiara realized her love for Cassandra took a different turn, she started to have feelings and soon after, she and Cassandra got into a relationship. Life was good. Too good. After graduation, something really really terrible happened. Cassandra got into a car accident. It was really bad. She got into a really bad coma. Now it's three years later and she's still fast asleep. Kiara's life has been on pause ever since. Until- Kiara also got into an accident. Not that kind of accident though.. Kiara accidentally saw things she wasn't supposed to see. Heard things she wasn't supposed to know. The only possible option was to take Kiara with them. And that's when Kiara's life get's off pause. That's when she finally learns how to live again and finally meets people who don't enjoy picking on her. At least.. most of them.. So yeah, this story IS about love and friendship. And about Kiara finding her way.
The Core: The First Guest by Perditaveritas
54 parts Complete
❖2021 Watty Awards Shortlist❖ Kevin was just a normal 10 year old kid until he saw a woman vanish right before his eyes. This made Kevin just a little bit different. He paid more attention to people now. Little did he know that this little difference would kill him the next time he encountered another alien about to return home. It would tear him apart, cell by cell, until he was unmade. His mind being transported away. --- So distantly far away there is a race that advanced to the point where they built dyson spheres to house their civilizations. In their continual expansion, they seeded galaxies with pods and connection satellites. Over time they upgraded their dyson spheres into matryoshka brain Cores. Imagine a computer powered by a star. Citizens of Cores no longer age once they upload their minds into the virtual living system of the Core. While they didn't age, most still choose to cycle through life and death though at a different scale of time compared to our lives. Citizens can visit other planets and live there as if they were on a "vacation". Mercury is Earth's hub connected to the closest Core and Earth is a remote vacation spot for wealthy citizens. When the main character was 10 he witnessed a citizen returning to the Core. The story continues 10 odd years later when he again witnesses a similar situation unfolding and manages to touch the person returning to the Core. This causes him to be swept up in the transfer as well and for his mind to join as a "Guest" user of the Core. As a Guest he has limited powers, a starting balance of zero cr or Citizen credits, and no idea how he can get home. He is the first human to ever become a Guest of a Core. Where money itself is the highest form of their science.
Beacon Paradox by Growling_moon
45 parts Complete
"But before the six friends could ponder on it or even think what to do with the photo, everything started to move. They felt they are being pulled by an imaginary force and the strength of this pull is too much that cannot even hold onto anything. They are lifted off their feet and pulled back to somewhere they do not know. But they are trying to hold onto each other's hand." Six friends reuniting after 10 years from their high school graduation. They have not seen each other face to face and now are reuniting as they go back to their hometown after getting a bizarre form of 'Beacon' or 'Call'. As soon as they step into their hometown, they face things. From learning about the death of a family member, to strange news about family, about their childhood homes, to learning things about their past that they never knew and even finding someone to love. Strange occurrences followed them, but the six friends did not want to back down from figuring out what is true and what is not. After all their past is what shaped them to be how they are now. As the six friends continue their journey to finding truth, they are faced with some challenges. Some normal ones and some very bizarre ones. How can one day's event cause so much uproar? How can one day when the six friends remember having a detention change to them being missing as everyone in town tells them? Read to find out how the six friends-Ivory, Lauren, Zoey, Ethan, Reed and Cassandra- navigate through the strange things they find to the path of finding the truth. Who said reuniting with old friends is always nice and comforting? These six friends would differ as they reacquaint themselves with their hometown, Shadowland. All names of characters and places mentioned in the story are fictional. Any matches with people or places in real life are purely coincidental. Note: If you are reading this story on any platform other than Watt-pad you are very likely to be at risk of a malware attack.
The Null Syndicate  by -_livv_-
41 parts Complete
**This book has been heavily influenced by six of crows and powerless ** **also the pictures aren't mine** The Null Syndicate In a world dominated by superpowered elites known as Ciphers, those born without abilities called Nulls are outcasts, struggling to survive in a system designed to crush them. But in the underbelly of the city, the Null Syndicate thrives, an underground group of rebels who specialize in pulling off impossible heists that target the Ciphers' most valuable secrets. the leader of the Syndicate, has spent years plotting the heist of a lifetime. Hidden within Ironkeep, the most secure Cipher prison in the city, is an ancient artifact known as the Null Stone a relic said to have the power to strip any Cipher of their abilities. With this stone, the Syndicate could finally level the playing field and spark a revolution. But as Kai assembles his crew of misfit thieves, a lock picking prodigy, a former Cipher with a dangerous past, a ghostlike infiltrator, and a tech genius with a penchant for chaos,they realize the job is far more dangerous than they imagined. The Cipher Council has learned of their plan, and the Syndicate is now in a race against time to steal the Null Stone before they're hunted down. Betrayals, secrets, and shifting alliances plague the crew as they plunge deeper into the heart of the Cipher world. And with every step closer to the Null Stone, they discover that nothing is as it seems. Because in a world where power is everything, even the powerless have dangerous secrets. For the Null Syndicate, the real question isn't whether they'll pull off the heist but whether they'll survive it.
This Is What I'm Good At {Adopted By @CommanderALFA} by purpleleemon
8 parts Complete
Sadly, I really don't have the motivation to continue this story any longer. I know a lot of you have been wanting to read more of it, and I sincerely apologize for not being able to deliver. The good news is, someone has offered to adopt the story and continue where I left off. If you wish to continue reading this, you may look for it in the profile of @CommanderALFA ••••••••••○○○○○•••••••••• Modern HTTYD AU wherein Hiccup-... Henry, joins a private army after leaving Berk for being, how he was always called his entire life, a runt, a hiccup, a disgrace. After being recruited, he meets amazing new friends and quickly becomes one of the organization's best. But Berk is in trouble. And now, Hiccup's conflicted. He ran away from Berk to start a new life, but...deep down, does he actually miss the town? Does he miss the people who tormented him? He doesn't believe it himself, but...maybe he does. How long will Hiccup be gone? Will Berk be safe and find a new heir? And what about Astrid? Did she forget about him, or did she just remember him even more? --------------------------------------- Disclaimer: I don't own the How to Train Your Dragon franchise, nor Rise of the Guardians, Frozen, Brave, Tangled, or Big Hero 6. Those rights go to their respective owners, both DreamWorks and Disney. Any names I come up with are completely made for this story and should they accidentally be the name of an actual person in the real world is completely coincidental.
My r00mmate bec@me my lit7le__hu$band by JustRead4rever
10 parts Complete
Yang Cen has been secretly in love with his roommate for two years, but the other party is not only a straight man, but also a closet. But the Internet says that closet means closeted! Yang Cen, who is eager to make a move, decides to test his roommate and randomly selects a BL novel on a novel website to discuss with him. Unexpectedly, this is a husband novel. Looking at his roommate's increasingly ugly face, Yang Cen knows that this secret love has come to an end. But who knows that when he wakes up the next day, he finds that he and his roommate have traveled through time and space in the novel, and he has become the richest hunter in the village, and a bachelor that everyone is thinking about. In order to get rid of the matchmaker and find his roommate who traveled through time, Yang Cen told everyone: "I have a hidden disease." "Oh, yes, yes, I am impotent and cannot have children." Lin He and his roommate were good brothers who had bathed and slept together. One day, the good brother suddenly discussed a novel with him, and it was a gay novel. Lin He, a "straight man" in Kongtong, said that he could not appreciate this. But the next day, retribution came. He and his roommate traveled through time into the novel. The most unacceptable thing was that he became a husband! The vicious stepfather wanted to marry him to a butcher who had three wives who had died, just to exchange for a gift to subsidize the family. Lin He, who became weak, would rather die than obey, and was beaten all over his body. Until he heard the matchmaker who came to the door say that the richest hunter in the village, Yang, was impotent, he hurriedly cried and begged the matchmaker to help him propose marriage.
Title Erased (Love) by ThesePatheticHumans
2 parts Complete
A one shot about a romance revolving around a futuristic institute's cultural festival. As it is, even future soldiers have a normal high-school life. The story is set in the future, where children are trained from an early age, by the permission of their parents, (unless of course, they are orphans) to become Knights. They then become part of the military. Nina is such a child, who joined the V_ four years ago. She's infamous for her wild nature and blatant disregard of the rules and the Student Council. And then, by some blighted twist of fate, she finds herself a House Prefect. Enter Azerkin Schwann, suave, cool, mysterious and with a permanent train of fangirls. Unbeknownst to the rest of the world, Nina finds a close friend in the drool-worthy Schwann. Everything is going on perfectly; except for a pack of man-killer cyborg wolves, an insanely powerful rival-in-battle, whose aim in life seems to be throwing challenge after challenge at Nina, and the Senior Troublemaker of the School's latest game :- 'Set fire to a pile of straw'. Well, that's not much, after all, what can a pile of straw do? Nothing, unless there's a stack of fireworks underneath. And that's the least of her worries when Nina's fallen head over heels for Schwann. This is a work of fiction, and the characters introduced are purely fictional. Any resemblance in name or character is unintentional. Just sayin' since this is basically my first story using normal names and settings. The story is currently a one shot. I may develop it further if there's a positive response from my readers. Positive, as in comments and votes.
What A Tease [girlxgirl] by KayLitha
20 parts Complete
Cassandra - I've gone through life's ups and downs because of you. I've felt how crazy love can be with you. But I just can't get you off my mind. You've got a piece of me and honestly, my life would suck without you. Alice - I let you go once. I won't let go anymore. All these mixed signals? They're all your unsaid feelings. You're still there, hurting yourself with her. But I'll wait, and I'll be your crying shoulder. I'll be love's suicide. Rebecca - I had lost you once. But you came back to me. Holding you now, feels like a mistery. How can I have you again? How can you still love me after all I let you went through? But now, the only thing I know is that I will do my best to cherish you forever, and never hurt you anymore. When life gives you back what you've lost, how will you take it? Cass had it all. Money, good grades, popularity, friends, She was on top of the world. And she threw it all. Alice, being a little girl, couldn't understand why or what had happened. All she knew was Cass was hurt and She wanted Cass to be happy again. So she did whatever she could to help out of love, only to have Cass walked out. Rebecca didn't have a choice. She couldn't have given her burden to the woman she loves tenderly. She was afraid that Cass would have left her if she had known. So she had to endure everything until she exploded. After almost 4 years, Cass is now back in town. Alice falls deeper in love with her, as Cass has a little crush on her. She thought this time, it will all go well. She would be dating Alice and everything's going to be fine. But when she met Rebecca, and saw that she still loves her, everything got way more complicated than before.
Caged By Him by moonchild80
106 parts Complete Mature
"WHY CAN'T YOU GET IT INSIDE YOUR HEAD?" He trapped my trembling body between his arms and slammed his fist into the wall. I flinch at the sound as I feel tears forming in my eyes. "I'M SICK AND TIRED OF YOUR CRYING. JUST ACCEPT THE FACT THAT YOU'RE NEVER LEAVING. THIS IS YOUR LIFE NOW, WITH ME" He spits, anger consuming his voice as I push myself further against the wall. Shutting my eyes closed and turning my face to the side as I do. Moments later, I feel his rough hand on my waist and his finger grazing my cheek. "Look at me, love." His hand grips onto my jaw, his thumb playing across my lower lip. He turns my face to meet his as I lower my gaze to the floor. He lowers himself to my level and I feel his breath fanning my cheek causing my breathing to become unsteady. "I love you so much, darling. But you need to learn. You need to learn that you won't be going anywhere. You're mine." With that being said, his other hand slides down to my waist "Your entire body, your mind, your soul. All mine." All I could do was tremble at his touch. How can someone so beautiful be so heartless? ~~~~~~~~~~ All a 19 year old Aurora Shaw wanted to do was work to make a living and volunteer at the orphanage. Unfortunately for her, ruthless and cunning 26 year old Mafia leader and billionaire Tristan Black had other plans for her. He's been waiting for the perfect moment to kidnap her and finally make her his queen after 2 years of watching and stalking her every move. He'd kill anyone who gets in the way of getting what he wants. What will happen when he ruins everything she wanted and forces her to marry him? Will she escape and resist him? Or will she submit and accept her fate?
You may also like
Slide 1 of 10
SCP's SCP cover
The Core: The First Guest cover
Beacon Paradox cover
The Null Syndicate  cover
This Is What I'm Good At {Adopted By @CommanderALFA} cover
My r00mmate bec@me my lit7le__hu$band cover
Title Erased (Love) cover
What A Tease [girlxgirl] cover
Caged By Him cover
𝐅𝐎𝐑𝐁𝐈𝐃𝐃𝐄𝐍 cover

SCP's SCP

20 parts Complete

This is a story about love and friendship. Friendship can grow so fast, it doesn't matter how long you know that person. If it's right, it's right. Kiara has always been quite lonely. She didn't know what real friendship was like. Until she met Cassandra. Cassandra was that type of friend everyone needs and Kiara was really glad to have Cassandra. They did everything together. Kiara was really depressed before she met Cassandra. She had been bullied and picked on since as long as she can remember. There wasn't even a reason for it and that makes it much worse. After a few years of good friendship, Kiara realized her love for Cassandra took a different turn, she started to have feelings and soon after, she and Cassandra got into a relationship. Life was good. Too good. After graduation, something really really terrible happened. Cassandra got into a car accident. It was really bad. She got into a really bad coma. Now it's three years later and she's still fast asleep. Kiara's life has been on pause ever since. Until- Kiara also got into an accident. Not that kind of accident though.. Kiara accidentally saw things she wasn't supposed to see. Heard things she wasn't supposed to know. The only possible option was to take Kiara with them. And that's when Kiara's life get's off pause. That's when she finally learns how to live again and finally meets people who don't enjoy picking on her. At least.. most of them.. So yeah, this story IS about love and friendship. And about Kiara finding her way.