With wet hands, break clumps and separate rice grains. Set aside.
In a bowl, combine shrimp, cornstarch, and salt and pepper to taste. Let stand for about 10 minutes and drain well.
In a wok over medium heat, add 1 tablespoon of oil. Add eggs and cook, stirring to scramble and break up, until just set and still slightly wet. Remove from pan and set aside.
Wipe down wok as needed. Add 1 tablespoon of oil and swirl across the bottom of the pan. Add shrimp and cook just until the color changes to pink. Remove from pan and set aside.
In the wok, add onions and garlic and cook until softened.
Add green peas and cook, stirring regularly, for about 1 to 2 minutes or until heated through. Remove from pan and set aside.
In the wok, add another 1 tablespoon of oil and swirl to coat insides of the wok. Heat until shimmering.
Add rice and spread over the surface of the wok. Cook for about 1 to 2 minutes or until grains begins to sizzle and then turn. Spread again over surface of wok and cook for another 1 to 2 minutes.
Drizzle soy sauce and sesame oil over rice.
Return shrimp, green peas, and eggs to wok. Toss rice to evenly distribute ingredients.
Season with salt and pepper to taste. Continue to cook for another 1 to 2 minutes or until completely heated through.
Remove from pan and garnish with chopped green onions, if desired. Serve hot.