At the Google campus on the outskirts of Mountain View, employees sip lattes under brightly colored umbrellas as others pass on company bicycles, laptops secured in the front baskets. This year the company will add substantially to its work force of more than 5,000 in that Silicon Valley city, and it has just leased nine acres to expand its campus.

But closer to downtown, Carolina Rivera finds herself in a decidedly less attractive environment — the crowded office of the Community Services Agency, where she is looking for a job. She has three children to support and has not found anything since her hours at an organic-food factory were reduced. Those like Mrs. Rivera find life difficult in Mountain View: the competition for work is fierce, housing is expensive and cuts in government services are pending as the city tries to balance its budget.

Mountain View, home to technology kingpins like Google, LinkedIn and Symantec, illustrates the disconnect between the current technology boom and the daily economic realities of many in Silicon Valley. The five biggest tech companies with headquarters in town are valued at more than $200 billion, but Mountain View, with a population of 74,000, faces a $2.6 million budget gap and has an unemployment rate of 7.7 percent.

“We really are seeing two very different economies emerging,” said Emmett Carson, chief executive of the Silicon Valley Community Foundation. “We have the Google campus; they’re expanding, they’re adding employees, they’re doing very well financially. But the nonprofit sector and local government have been stretched to the maximum.”