Immigration was certainly a key factor in the growth of America's economy . The Industrial Revolution came with massive technological developments, and the chance to exponentially improve the production rate of factories. However, to operate these emerging industries it would take a tremendous amount of laborers. American citizens working alone, weren't going to be enough. In other words, the peak of immigration influx allowed the U.S. to take full advantage of the possibility at the right time.
Hope this helps!
Answer: The Compromise of 1850 was necessary because the North and the South were badly split on the issue of the lands that had been taken from Mexico in the recent war. California wanted to enter the Union as a free state, but that would have upset the balance between free and slave states.