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
Personal Finance
Yesterday
1318
Are we ready to buy our forever home?
India
Yesterday
630
Duniya me Vishwaguru ka Danka
Ask Blinders
Yesterday
1396
Top red flags in guy to see before saying yes to marriage (arranged)
Health & Wellness
Yesterday
2349
Guys who don’t work out: why?
Tech Industry
4h
202
FTC Bans Noncompetes - Tech impact
Distributed system.