Concept Flow - SparkSession and SparkContext
Start Application
Create SparkSession
SparkSession creates SparkContext
Use SparkContext for low-level operations
Use SparkSession for high-level APIs
Perform Data Processing
Stop SparkSession (and SparkContext)
The flow shows starting a Spark app by creating a SparkSession, which internally creates a SparkContext. SparkContext handles core tasks, while SparkSession provides easy access to high-level features.