Cook rice ahead of time and refrigerate until completely chilled, preferably overnight.
Beat eggs in a small bowl and scramble in a hot wok or large skillet over medium-high heat. Remove and set aside.
In the same pan, add oil and sauté diced onion until translucent, about 3-4 minutes.
Add minced garlic and cook for 30 seconds until fragrant.
Add frozen peas and cook for 1-2 minutes until heated through.
Add chilled rice, breaking up any clumps with a spatula.
Stir in scrambled eggs, soy sauce, and sesame oil.
Season with salt and pepper to taste and serve immediately.