16 Dec 2025

feedDrupal.org aggregator

Freelock Blog: Can Everyone Hear You? Captions and Sign Language

16 Dec 2025 4:00pm GMT

LakeDrops Drupal Consulting, Development and Hosting: ECA Use Case: Authentication

ECA Use Case: Authentication

Security Logo with a pointer

Jürgen Haas

This article explores how ECA (Event-Condition-Action) can handle common authentication workflows in Drupal, including access denied redirects, user registration forms, and post-login actions. It demonstrates how ECA models can replace multiple contributed modules while offering greater flexibility - such as role-based redirects after login, hiding unnecessary password fields during account creation, and automatically assigning roles based on email domains. The key benefits include fewer dependencies, easier customization, simpler upgrades, and self-documenting configuration. However, ECA still needs improvement in discoverability and usability to become accessible to all Drupal site builders.

16 Dec 2025 1:59pm GMT

joshics.in: Beyond the Request: Best Practices for Third-Party API Integration in Drupal

Beyond the Request: Best Practices for Third-Party API Integration in Drupal bhavinhjoshi

Beyond the Request: Best Practices for Third-Party API Integration in Drupal - Joshi Consultancy Services

As businesses continue to innovate in the digital space, no website is an island. Whether it's pulling payment data from Stripe, syncing leads with Salesforce, or fetching live race results from a sports data provider, your Drupal site almost certainly needs to communicate with external services.

Drupal 10 (and the upcoming 11) is a powerful platform for these integrations, but simply connecting to an API isn't enough. Poorly built integrations can result in a fragile system, where a third-party service outage brings your entire site down.

At Joshi Consultancy Services, we've seen the difference between "it works" and "it scales." Here's how we ensure our API integrations are robust, reliable, and future-proof.

01

Embrace the Guzzle Client

Don't resort to raw cURL. Since Drupal 8, the Guzzle HTTP client has been bundled in the core. It's a robust, standards-compliant client that simplifies API interactions and offers better extensibility.

Why it matters: Guzzle allows us to standardize outgoing requests across your site. We can easily add middleware for tasks like logging, authentication, and debugging without redoing the connection logic for every API call. This leads to cleaner, maintainable code.

02

Never Hardcode Credentials

It's tempting to paste your API keys directly into the code or configuration settings to get things up and running quickly. But this creates a serious security risk, exposing sensitive credentials in code repositories or database backups.

The Solution: We use the Key module to securely store API credentials outside the web root. The module references API keys from environment variables or secure locations, ensuring they remain hidden from unauthorized access.

03

Caching is Non-Negotiable

External APIs can be slow, and relying on them for every page load will degrade your site's performance. Moreover, many APIs impose rate limits (e.g., "1000 requests per hour"), making it crucial to minimize the number of calls.

Best Practice: Decouple the view from the request.

  • When we fetch data, we store it in Drupal's Cache API.
  • Subsequent page loads fetch the cached data, resulting in faster load times.
  • We set a "Time to Live" (TTL) for the cached data based on business needs.

Result: Your site stays fast, and you don't exceed API rate limits.

04

Fail Gracefully

What happens if the third-party API goes down? Does your site crash with a "500 Error" or a blank screen?

Defensive Coding: We wrap all API requests in try/catch blocks. If an external service times out or returns a 404, we handle it gracefully. The user might see old cached data or a friendly message like "Live data is temporarily unavailable" instead of a crash.

05

Use the Queue API

Certain tasks should not block the user experience. If an action takes longer than a couple of seconds, it shouldn't be performed while the user waits for the page to load.

Example: If a user submits a form and the data needs to be sent to multiple third-party services (CRM, ERP, marketing platform), don't make them wait for each one.

The Solution: We use Drupal's Queue API to handle time-consuming tasks in the background. The user's submission is saved immediately, while a background process (using Cron) picks up the task and sends the data to the external APIs without blocking the user's experience.

Final Thoughts

API integration is straightforward, but resilient integration requires careful planning. By treating external APIs as unreliable services that need to be managed, cached, and secured, we ensure your Drupal site remains robust, even when things go wrong on the other side of the connection.

Are you struggling with slow API integrations or need to connect your Drupal site to complex third-party services? Let's discuss how to architect a solution that scales, ensuring both performance and reliability.

Add new comment

16 Dec 2025 12:50pm GMT

feedW3C - Blog

TPAC 2025 Breakouts recap

This post gives highlights about the kind of breakout sessions held at TPAC 2025 and the improvements made this time.

16 Dec 2025 9:53am GMT

12 Dec 2025

feedW3C - Blog

What happens when you put developers, standards, and sushi in one room

This post gives a summary of the successful TPAC 2025 Hackathon.

12 Dec 2025 12:46pm GMT

10 Dec 2025

feedW3C - Blog

W3C seeking community input for TAG appointments

W3C is seeking community input by January 5 for appointments to the W3C Technical Architecture Group (TAG), to complement the TAG election by actively seeking candidate appointees in order to support a diverse and well-balanced TAG, including diversity of technical background, knowledge, and skill sets.

10 Dec 2025 9:42am GMT

11 Aug 2025

feedOfficial jQuery Blog

jQuery 4.0.0 Release Candidate 1

It's here! Almost. jQuery 4.0.0-rc.1 is now available. It's our way of saying, "we think this is ready; now poke it with many sticks". If nothing is found that requires a second release candidate, jQuery 4.0.0 final will follow. Please try out this release and let us know if you encounter any issues. A 4.0 … Continue reading

11 Aug 2025 5:35pm GMT

17 Jul 2024

feedOfficial jQuery Blog

Second Beta of jQuery 4.0.0

Last February, we released the first beta of jQuery 4.0.0. We're now ready to release a second, and we expect a release candidate to come soon™. This release comes with a major rewrite to jQuery's testing infrastructure, which removed all deprecated or under-supported dependencies. But the main change that warranted a second beta was a … Continue reading

17 Jul 2024 2:03pm GMT

17 Apr 2024

feedOfficial jQuery Blog

Upgrading jQuery: Working Towards a Healthy Web

jQuery's influence on the web will always be evident. When it was first introduced in 2006, jQuery became a fundamental tool for web developers almost immediately. It simplified JavaScript programming, making it easier to manipulate HTML documents, handle events, perform animations, and much more. Since then, it has played and continues to play a major … Continue reading

17 Apr 2024 5:00pm GMT

29 May 2023

feedSmiley Cat: Christian Watson's Web Design Blog

7 Types of Article Headlines: Craft the Perfect Title Every Time

When it comes to crafting an article, the headline is crucial for grabbing the reader's attention and enticing them to read further. In this post, I'll explore the 7 types of article headlines and provide examples for each using the subjects of product management, user experience design, and search engine optimization. 1. The Know-it-All The […]

The post 7 Types of Article Headlines: Craft the Perfect Title Every Time first appeared on Smiley Cat.

29 May 2023 10:20pm GMT

09 Apr 2023

feedSmiley Cat: Christian Watson's Web Design Blog

5 Product Management Myths You Need to Stop Believing

Product management is one of the most exciting and rewarding careers in the tech world. But it's also one of the most misunderstood and misrepresented. There are many myths and misconceptions that cloud the reality of what product managers do, how they do it, and what skills they need to succeed. In this blog post, […]

The post 5 Product Management Myths You Need to Stop Believing first appeared on Smiley Cat.

09 Apr 2023 5:28pm GMT

11 Dec 2022

feedSmiley Cat: Christian Watson's Web Design Blog

The Key Strengths of the Best Product Managers

The role of a product manager is crucial to the success of any product. They are responsible for managing the entire product life cycle, from conceptualization to launch and beyond. A product manager must possess a unique blend of skills and qualities to be effective in their role. Strong strategic thinking A product manager must […]

The post The Key Strengths of the Best Product Managers first appeared on Smiley Cat.

11 Dec 2022 4:43pm GMT