Skip to content

Instantly share code, notes, and snippets.

View stevesun21's full-sized avatar

stevesun21

  • Somewhere on the earth
View GitHub Profile
@stevesun21
stevesun21 / CassandraPaging
Last active November 5, 2018 12:24
Cassandra Java Drive Pagination
import com.datastax.driver.core.*;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
/**
* This is a helper class for implementing a pagination function based on Cassandra Java Driver (http://datastax.github.io/java-driver/)
*
* The solution of skipping rows is that use page state rather than iterator rows one by one.
@vasanthk
vasanthk / System Design.md
Last active May 11, 2025 06:17
System Design Cheatsheet

System Design Cheatsheet

Picking the right architecture = Picking the right battles + Managing trade-offs

Basic Steps

  1. Clarify and agree on the scope of the system
  • User cases (description of sequences of events that, taken together, lead to a system doing something useful)
    • Who is going to use it?
    • How are they going to use it?