I had apple interview where technical questions were asked. One question where the interviewer stressed upon was.. How to make parallel calls to google.com, amazon.com, apple.com and aggregate results. I explained multithreading and concurrency but interviewer doesn't look satisfied. Is there any other concept/way to do it? What is he looking for?
Backend
Map/Reduce?
Learn Swift. Apple uses Grand Central Dispatching for its concurrency model.
There are many ways - multiple threads, thread pool + task queue, futures, actors, distributed queue + workers, coroutines etc
Scatter gather pattern. Super easy with GoLang. In Java you could do in many varieties. If you are using RXJava you can Zip up all the remote calls and have a callback called when all are done. You could plain ExecutorService and submit futures and join all of them or use completable future for callback. Multithreading is tricky you need to code otherwise you will just suck at these interviews.
In Go, sync.WaitGroup
World Conflicts
Yesterday
745
Peaceful Protest Hasn’t Worked and Has Been Met With Aggression.
Software Engineering Career
7h
1844
L4 Google -> 45 interviews, 5 offers, AMA
Software Engineering Career
Yesterday
785
If your team does daily standups, your manager is a micromanager
Software Engineering Career
Yesterday
1706
Principal Software Engineer TC~300K at Microsoft vs 600K at Meta. Is 300k pretty low for Principal scope?
India
Yesterday
1351
Ideal indian parents
Distributed system.