Contentful 101 Flashcards
(62 cards)
What is an API?
Application Programmimg Interfaces: Allows a product/service to talk to another product/service. Also used to give people access to your data/resources from outside your firewall.
What are the benefits of Contentful API?
- Allow integration with 3rd parties
- Developers can get data in and out of Contentful platform using API calls.
What are the 4 APIs and their access?
- Management (read & write access to entries)
- Delivery (read-onlly access to entries
- Preview (preview unpublished entries)
- Images (ad-hoc transformation)
What is a webhook?
Push notification (on email or slack for example) when a change or action is triggered
What does the Management API do?
- CMA - is not meant for use in production scenarios.
- Read and write access
- Model content
- Manage entries
- Powers the web app
- Uses different key
What does the Preview API do?
CPA
- acts exactly the same as the CDA
- Shows published and draft content
- Use it for staging / QA
- Works like CDA (uses different key)
Tell me about the Delivery API do?
CDA is an incredibly fast read-only api for accessing your content in production
- Read-only
- Only shows published content
- High performance
- High availability
Content is delivered as JSON data, and images, videos and other media as files. The API is available via a globally distributed content delivery network (CDN).
What does the image API do?
Allows for you to manipulate your images on the fly. You can access it with the same API key you use for the CDA.
- Delivers assets
- Offers image resizing, cropping, framing, etc
- Uses the CDA api key
What does API-centric mean?
This means Developer get your data in and out of the Contentful platform using API calls. This is what makes Contentful a headless and decoupled solution for managing content.
What are the benefits to a modular approach?
Flexibility - Makes content reusable on any device. Creates building blocks so that content can be easily shuffled around depending on the presentation format
What is a presentation layer?
Displays the content to the visitor’s device/channel
What are pros about legacy solutions?
- Very easy to use for adding and updating content (esp. for non technical users)
- Requires no coding
- Templetes galore
- Customization via themes
- For those that want a hosted solution
What are the cons about legacy solution?
- Page-Centric: Never meant to leave website so content is not responsive to other devices
- Monolitic core makes it hard to integrate and upgrade
- Single server does not allow for scalability and distribution
- Tightly couples content with presentation layer
What are the pros about full-stack CMS
Robust feature set, all in one solution (swiss army knife)
What are the cons about full-stack CMS
- Tightly couples content & presentation layer
- Swiss army knife, does a little bit of everything okay but not excellent
- Limiting developers to stack
- No flexibility to integrate with other apps
Why is cloud service is better than single server?
- Scalability
- No single point of failure
Explain Contentful’s cloud infrastructure
Our cloud infrastructure has a split architecture -
Management side and Delivery side. Everything is stored on AWS. Contentful is a content hub allowing users to author things in draft mode. As soon as its published it is pushed out into our delivery infrastructure. This is where you can point any presentation layer. CDN…..
Explain Contenful’s Web App
Users can define their content model, work on entries, edit images, manage access credentials and perform other content-related tasks, and a set of stateless APIs enabling users to interact with content programmatically
How is Contentful taking a different approach to traditional CMSes?
-Modular - Built to make content reusable and channel independent
-Microservice - API-driven design allows powerful integrations with third parties
-Cloud service- Decoupled and scalable management and delivery of content
shared with one person, off - only specific people can access
*Content is stored in pure form, stripped from any presentation mark up or business logic and encoded as JSON doc
What is JSON?
JSON is a way of sharing data (usually between the browser and a server).
- It stores data in an easy-to-read manner for both humans and programs
- It is labeled as a “data interchange format” because you will see it used as an intermediary to move data between one program and another
Benefits of JSON?
It is light-weight, contains metadata about the type of values stored in individual fields and enforce type validations giving precise content
Why does Contentful use JSON?
JSON is a text format that is completely language independent but uses conventions that are familiar to programmers of the C-family of languages, including C, C++, C#, Java, JavaScript, Perl, Python, and many others. These properties make JSON an ideal data-interchange language
Who should not use Contentful?
Companies with small dev team who want
- to put up a quick web-page
- templating
- to host content on their server
- out of the box solution
Who should use Contentful
Companies that
- are early adopters
- want competitive advantage
- embrace micro-service architecture
- manage data in a structured content.
- have developers who want customization (don’t mind crafting applications designed to fetch data from Contentful and built their way)
- want flexibility to reuse structured content on any device/channel