An example of Future composition in a real app

2,951 views

Published on

Published in: Technology, Education
0 Comments
5 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
2,951
On SlideShare
0
From Embeds
0
Number of Embeds
241
Actions
Shares
0
Downloads
21
Comments
0
Likes
5
Embeds 0
No embeds

No notes for slide

An example of Future composition in a real app

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

×