r/Frontend • • Jun 25 '21

Some interesting comments by Rish on the tech-stack of MS Teams in Windows 11 (angularjs->react, electron->edge webview2, graphql. Half the system resources, etc)

https://twitter.com/rishmsft/status/1408085784016539653
14 Upvotes

4 comments sorted by

6

u/AwesomeFrisbee Jun 25 '21

So some interesting things from Rish Tandon (@rishmsft) CVP Engineering of MS Teams.

Microsoft Teams will be directly integrated as part of Windows 11 https://theverge.com/2021/6/24/22548738/microsoft-teams-windows-11-integration-announcement-features We have worked day and night in the last 6 months to make this happen. This was a moonshoot. Today it becomes real

With this change, we are taking a major step in #MicrosoftTeams Teams architecture. We are moving away from Electron to Edge Webview2. Teams will continue to remain a hybrid app but now it will be powered by #MicrosoftEdge. Also Angular is gone. We are now 100% on reactjs

We are also on apollo graphql. And we are going to continue to contribute back to apollo, graphql, reactjs, chromium. This is also a fundamentals first effort for us. Teams 2.0 will consume half the memory of the same consumer account on Teams 1.0

Lastly, this architecture will help us add support for multiple accounts, work life scenarios, release predictability, and scale up for the client. It will be a journey but with #Windows11 we have taken key first steps.

Some responses are interesting too:

Taylor: What was the reason for moving away from Angular?

Rish: Microsoft Office as a whole took a bet on reactjs a while back. Teams was a small island of its own with angular. We have been running angular and reactjs side by side in our current app for a while now. Time to fully cut over. There are a lot of advantages:

  1. This allows us to share components across office ecosystem 2. simplifies product development since engineers only have to think one framework 3. allows us to focus all our energies on building the best reactjs app on the planet. Teams is one of a kind app that runs whole day.

We have to create our own debugging tools to be successful as what is in reactjs and web ecosystem doesn't cut it. So doing it for one framework and going all in is super helpful

Michael: So there isn't much of an angular vs react capabilities reasoning behind it. It really is just more so aligning the frameworks used at

Rish: First of all we were on angularjs and not new angular, so we had to migrate either ways, and the cost was non zero. Plus with msft investment into react, it made more sense to go with rest of the ecosystem

Some more:

Rish: Edge webview2 https://docs.microsoft.com/en-us/microsoft-edge/webview2/ is the secret sauce. It has been available for all apps for a bit now :-)

So basically they were on the old AngularJS v1 and MS Teams moved to React so they moved Teams to React as well. Also the backend being on GraphQL is pretty interesting or the fact that they moved away from Electron.

Gives you something to talk about when you find yourself at the coffee machine in the office

2

u/MrAaaht Jun 25 '21 edited Jun 25 '21

Microsoft Teams will be directly integrated as part of Windows 11 ... We have worked day and night in the last 6 months to make this happen

Sounds like a rush job with a hard deadline. That doesn't bode well.

0

u/[deleted] Jun 25 '21

[deleted]

1

u/AwesomeFrisbee Jun 25 '21

They can still package it differently for other platforms. They likely need to do it for iOS and Android too. But it will mostly be about speed anyways and the fact that they ditched Electron

1

u/Mds03 Jun 25 '21

For MacOS, I suspect they might opt for using MacOS/Safari webview, using the same web components. This would likely be one of the advantages of a hybrid web/native approach, instead of doing full native.
Not sure about the situation over on Linux. Is there a built in web view for apps in most distros?