Your SlideShare is downloading. ×
An example of Future composition in a real app
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×

Introducing the official SlideShare app

Stunning, full-screen experience for iPhone and Android

Text the download link to your phone

Standard text messaging rates apply

An example of Future composition in a real app

1,874
views

Published on

Published in: Technology, Education

0 Comments
5 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
1,874
On Slideshare
0
From Embeds
0
Number of Embeds
4
Actions
Shares
0
Downloads
11
Comments
0
Likes
5
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. An example of in a real app Future composition Phil Calçado SoundCloud
  • 2. mothership the
  • 3. api.soundcloud.com
  • 4. api.soundcloud.com Search Msgs Metadata Groups Stats Playlists
  • 5. api.soundcloud.com MetadataPlaylists Search Social˝ Graph Messages StatsGroups
  • 6. parallelism doesn’t like Rails
  • 7. time parallelism is like
  • 8. time concurrency is like
  • 9. time ideal is like
  • 10. time rails is like
  • 11. sequential use case #1
  • 12. concurrent use case #2
  • 13. enter
  • 14. sequential use case #1
  • 15. maybe more readable
  • 16. concurrent use case #2
  • 17. not concurrent!
  • 18. ah!
  • 19. example
  • 20. example
  • 21. example 50 or so 10-40ms requests total response time is 152ms
  • 22. challenge: interesting how to detect/type missed concurrency opportunities?˝ aka. for comprehension abuse
  • 23. phil calçado http://philcalcado.com˝ @pcalcado˝ www.soundcloud.com˝