In depth
と同時に has two uses. First, one event happens at the same moment as another: "as soon as", "the moment", "at the same time as". Second, it says that one thing is true and another is also true: "while also", "at the same time". The second use (〜であると同時に) is more common in writing and formal speech.
電車のドアが開くと同時に、多くの人が降りて来た。
densha no doa ga hiraku to douji ni, ooku no hito ga orite kita.
The moment the train doors opened, lots of people got off.
新しいゲームソフトは発売されると同時に、全部売れてしまった。
atarashii geemu sofuto wa hatsubai sareru to douji ni, zenbu urete shimatta.
The new game sold out the moment it went on sale.
ベルが鳴ると同時に、学生たちは教室を飛び出した。
beru ga naru to douji ni, gakuseitachi wa kyoushitsu o tobidashita.
The moment the bell rang, the students rushed out of the classroom.
卒業と同時に、彼は東京の会社に就職した。
sotsugyou to douji ni, kare wa toukyou no kaisha ni shuushoku shita.
As soon as he graduated, he started working at a company in Tokyo.
彼女は二人の子どもの母親であると同時に、病院で働く医者でもある。
kanojo wa futari no kodomo no hahaoyade aru to douji ni, byouin de hataraku isha de mo aru.
She is a mother of two and at the same time a doctor working at a hospital.
留学が決まってうれしいと同時に、少し不安もある。
ryuugaku ga kimatte ureshii to douji ni, sukoshi fuan mo aru.
I'm happy that my study abroad is settled, but at the same time I feel a little anxious.
家に着くと同時に、雨が降り出した。
ie ni tsuku to douji ni, ame ga furi dashita.
It started raining the moment I got home.
試合終了の笛と同時に、観客から大きな拍手が起こった。
shiai shuuryou no fue to douji ni, kankyaku kara ookina hakushu ga okotta.
The instant the final whistle blew, the crowd broke into loud applause.
この仕事は楽しいと同時に、責任も重い。
kono shigoto wa tanoshii to douji ni, sekinin mo omoi.
This job is fun, but at the same time it carries heavy responsibility.
インターネットは便利であると同時に、危険な面もある。
intaanetto wa benride aru to douji ni, kiken na men mo aru.
The internet is convenient, but at the same time it has its dangers.