Skip to content

Instantly share code, notes, and snippets.

View charan9898's full-sized avatar

Sai Charan charan9898

View GitHub Profile
@charan9898
charan9898 / System Design.md
Created January 23, 2022 18:20 — forked from vasanthk/System Design.md
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?
@charan9898
charan9898 / jpa-cheatsheet.java
Created January 14, 2022 16:35 — forked from jahe/jpa-cheatsheet.java
JPA Cheatsheet
/*
JPA (Java Persistence API)
Transaction Management with an Entity-Mananger:
---
entityManager.getTransaction().begin();
entityManager.persist(<some-entity>);
entityManager.getTransaction().commit();
entityManager.clear();