migrating legacy com
play

Migrating Legacy.com Migrating a top 50 most visited site in the - PowerPoint PPT Presentation

Migrating Legacy.com Migrating a top 50 most visited site in the U.S. onto Drupal - Legacy.com Case Study Migrating Legacy.com Jordan Ryan Product Owner Ankur Gupta Lead Developer Bassam Ismail Front-end Lakshmi Narasimhan RESTful


  1. Migrating Legacy.com Migrating a top 50 most visited site in the U.S. onto Drupal - Legacy.com Case Study

  2. Migrating Legacy.com Jordan Ryan Product Owner Ankur Gupta Lead Developer Bassam Ismail Front-end Lakshmi Narasimhan RESTful Services Hussain Abbas Migration

  3. Who is Legacy?

  4. Why Drupal

  5. Why Decoupled Legacy looks to innovate on the Front-End

  6. Why Decoupled Content was a small part of a much larger ecosystem

  7. Why Decoupled Using React/Node lent itself to componentized widgets that needed services

  8. Why Decoupled Legacy wanted to own the data and platform

  9. ● Discovery ● Architecture ● Site building and development ● Migration ● API development ● Performance optimization ● FE/BE Staff Augmentation What DELIVERY TIMELINE < 6 months we did

  10. Key Challenges Managing teams with different velocities

  11. Key Challenges Managing presentation in a decoupled system

  12. Key Challenges Managing SEO Value in Decoupled system - how to deliver SEO value to a headless application

  13. Key Challenges Versioning API’s

  14. Key Challenges Varying page elements depending on affiliates

  15. Key Challenges Cache Invalidation

  16. Key Challenges React doesn’t like HTML. Componentized HTML for react elements.

  17. Discovery Our Methods ● Value Driven Development ● API designs first ● Drupal as a platform solution ● Extracting 15 years of complex business logic ● Infrastructure ○ Akamai ○ AWS ○ Latisys, .NET

  18. Development Our Methods METHODOLOGY: SCRUM

  19. Development Our Methods Overcommunicate

  20. Development Our Methods Few Drupal best practices ● Consistent environments ● Established git workflow ○ Release notes ● Drush build script ● Feature driven development ● Checklists ● Environment module 80+ CONTRIBS 40+ CUSTOM

  21. Development

  22. RESTful Why choose RESTful? ● Developer friendly. ● Allows customizing every aspect of API, like auth, headers, versioning, caching.

  23. RESTful Specifications and testing ● An API is only as good as its documentation. ● RAML - standard format to share and maintain API specs. ● It is possible to write Drupal Web test cases over RAML!

  24. RAML

  25. RESTful Authentication ● RESTful allows any kind of authentication scheme ● We wrote our own for performance reasons.

  26. RESTful Versioning ● serves same purpose as interfaces, i.e. honor a contract. ● RESTful allows versioning on a per resource basis ● Each payload change bumps up minor version number.

  27. RESTful Challenges ● Problem statement: given a URL alias, fetch the corresponding resource ● Hard bits: handle redirects, 404s, get metatags

  28. RESTful Caching ● RESTful ships with batteries included caching ● The need to intelligently purge cache ● RESTful cache purge, https://www. drupal.org/project/restful_purge

  29. RESTful Panels Our Methods ● Presentation Framework ● Use Panels to administer content and layout on a decoupled Drupal website. ● Supports Panelizer.

  30. RESTful Panels

  31. RESTful Panels ctools Standard Panels Renderer RestfulPanelsDataProviderDisplay StructuredRenderer restful_panels RestfulPanelsDisplay RestfulPanelsPanelizer restful_panels (ready to use endpoint)

  32. RestfulPanelsPanelizer RESTful Panels restful_panels ctools legacy_pane LegacyPaneLandingPage (ctools content type) Processes input data and passes Renders JSON if in restful_panels node id to RestfulPanelsPanelizer. context of RESTful Panels. legacy_pane

  33. RESTful Panels Our Methods ● Contributed and available for use: https://www.drupal.org/project/restful_panels ● Future plans ○ Usage with context ○ Metatags ○ Panels Variants

  34. Migration Our Methods ● Migration from MSSQL Server ● Transforming content structure ● Map everything based on complex business logic ● Migration groups ● Some numbers: ○ ~2500 articles ○ ~5,000 media items ○ ~200 galleries ○ ~4,000 gallery items ○ ~1,100 affiliates

  35. Front-end

  36. Front-end Why ● Performance ● Developer Productivity

  37. Front-end Why: Performance ● Performance* ○ Page load time ○ Native ( like ) experience on the web

  38. Front-end Why: Developer Productivity ● Composition ○ Easy to compose ○ Event delegation and inline styles ○ No global scope in pre CSS-Modules era using Stylus ● Testing ○ ui = f(state, [ … actions]) ○ Easy to simulate events ○ Testing against virtual and real DOM

  39. Front-end Solutions ● Server-side rendering ○ SEO for SPA ○ Improved Initial page load time ○ Easy to Cache

  40. Front-end Solutions ● Drupal ○ Data source ○ Layout configuration source

  41. Front-end Solutions ● React ○ Parsing raw HTML on Drupal Layer ○ Schema.org compliance ○ Help avoid content injection

  42. Final Thoughts ● CI/CD best practices ● Personalized Decoupled Drupal requires specialized infrastructure / middleware ● Architecture across 2 systems ● Considerations with points of failure ● Progressively develop Decoupled solutions

  43. QUESTIONS?

  44. asia2016.drupal. org/schedule https://events.drupal.org/node/ 7536

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend