{ "uuid": [ { "value": "bfd168f9-71fe-41f9-a4f6-60ce897917a7" } ], "langcode": [ { "value": "en" } ], "type": [ { "target_id": "daily_email", "target_type": "node_type", "target_uuid": "8bde1f2f-eef9-4f2d-ae9c-96921f8193d7" } ], "revision_timestamp": [ { "value": "2025-05-11T09:00:26+00:00" } ], "revision_uid": [ { "target_type": "user", "target_uuid": "b8966985-d4b2-42a7-a319-2e94ccfbb849" } ], "revision_log": [], "status": [ { "value": true } ], "uid": [ { "target_type": "user", "target_uuid": "b8966985-d4b2-42a7-a319-2e94ccfbb849" } ], "title": [ { "value": "Writing contrib modules as glue between your custom code\n" } ], "created": [ { "value": "2023-12-04T00:00:00+00:00" } ], "changed": [ { "value": "2025-05-11T09:00:26+00:00" } ], "promote": [ { "value": false } ], "sticky": [ { "value": false } ], "default_langcode": [ { "value": true } ], "revision_translation_affected": [ { "value": true } ], "path": [ { "alias": "\/daily\/2023\/12\/04\/writing-contrib-modules-as-glue-between-your-custom-code", "langcode": "en" } ], "body": [ { "value": "\n

A few years ago, I worked on an event booking and management website for a charity in the UK.<\/p>\n\n

One required piece of functionality was to allow event organisers to send a private message to all attendees of an event.<\/p>\n\n

We decided to use the Private Message module<\/a> but were concerned about hitting memory limits or timeouts, as some events had several hundred attendees.<\/p>\n\n

We decided that we needed to use a queue and have it process and send the messages.<\/p>\n\n

This split the feature into three parts:<\/p>\n\n