Amazon posts $2 billion loss for the second straight quarter and Apple profits fall 8%

Tech stocks are rallying after-hours after Apple and Amazon both reported sales that surpassed expectations, despite inflation and other economic turmoil and fears of a recession.