Low-latency content API
Secure mobile back end
User-friendly editing interface
Highly scalable and developer-friendly API
Secure, cloud-based content creation platform
Ability to cache and store offline app content
WordPress as a mobile back end
Each year, Leica Microsystems brings several new devices to the market and releases numerous updates to its current range of products. Constrained by deadlines and working with a busy pipeline, Leica’s staff needed a quick and uncomplicated way to add new content. The WordPress CMS, with its familiar interface and a large plugin marketplace, was a natural choice for managing in-app content. Because of this draw, the initial version of the app was built on a customized WordPress platform.
“We used the Advanced Custom Fields plugin to extend WordPress’ content modeling functionality and the WP API plugin to expose the content for use in mobile apps,” explained Shashi Saurav, the lead developer on the project. The team got to querying the WP API in minutes, but the structure of API responses left much to be desired. “The WP API plugin limits the API endpoints to default entities, requiring us to spend another couple of days writing plugins for custom content types,” noted Saurav.
In the prototyping phase, more problems came into view. Fetching content required multiple API calls and responses suffered from high latency. Workarounds that worked elsewhere now just led to numerous dead ends. “As a result, we were left with a beautifully designed app, but knew it could perform better,” explains Kishen Hawkins, the founder of Fast Fwd agency. “Even with a stable Wi-Fi connection, it would take 4-5 seconds to load an entry, leading to poor usability," he detailed.
Getting up to speed with a native API
Six months after the launch, concerns about WordPress API performance and security led to a follow-up project aimed at relaunching the app on a more robust back end. Contentful initially caught the eye of the team with its clean user interface, and soon enough the developers were creating sample entries and testing the API capabilities of the platform. Happy with their initial tests, the developers proceeded to migrate the ongoing project to the new platform. Five days later, they had a fully-functional app.
The immediate benefits of using Contentful as a mobile back end became obvious during the initial development phase. “Contentful makes very few assumptions about the structure or purpose of the content it serves,” explained Matthew Jensen, the Executive Director at the agency, “making it extremely easy to consume and customize the API.” The developers share Jensen's sentiment, “The API latency is super low, responses are compact and well structured and thanks to official SDKs we can build apps without ever going back to PHP."
The true advantage of migrating to Contentful, however, had to do with the performance gains of the Leica app. Swapping their Rackspace Cloud site hosted on WordPress instance for Contentful, a cloud-native content platform with a built-in content delivery network (CDN), has cut down latency by a factor of two. “The has allowed us to seed the app with the initial content and use the sync API to fetch any updates made since the app has shipped,” explained Hawkins. “Thanks to these networking features, in-app interactions now feel instant. The speed improvement we observed was staggering.”
The editor’s dividend
The big question at this point was: how would the new CMS fare with the editorial team at Leica? While the clean user interface made for straightforward navigation, Contentful also introduced a number of novelties, including a flat content structure and the use of markdown for text fields. “Some editors might feel that migrating to markdown robs them of essential controls like font sizes, text color, or paragraph alignment. In reality, removing these styling options ensures a consistent presentation of the text across all devices and platforms," noted Jensen.
This last point wasn't lost on the Leica team, who are thinking about an Android version of the app. “Transitioning to markdown was very simple for us… by eliminating the markup code that routinely gets smuggled from Microsoft Office documents it also reduced the time it takes to prepare an entry for publishing,” says Dr. Isabelle Köster, a scientific writer at Leica Microsystems. The combination of markdown and streamlined content templates resulted in a visibly shorter path to publishing. Leica team members are now free to focus on the substance of their content.
By bringing cutting-edge content on confocal microscopy methods and technologies, Leica Microsystems enables life science practitioners and university students to build valuable technical skills. To succeed in this mission, it needed an app that was quick to update and easy to use. By relaunching the app with Contentful, Fast Fwd has delivered on both promises: Leica's editorial team can update the app at any time and end users benefit from instant interactions and continuously updated content.