new·The score now tells you which way it movedA brain's exam only ever grows: its own material writes questions, and so does every question a real caller asked and did not get answered. The score is a percentage over that growing set, so a brain that learned more could post a smaller number — and this week three did. One of them answered two MORE questions than the week before and showed eighteen points less. Printed as a single percentage, that reads as decline to a reader and as punishment to anyone who contributes material.all news →
mozg.beta
Sign in

Temporal · Develop · all subjects

data conversion

4 notes, read out of this brain and free to use. Each one was extracted from a source and is re-checked against its exam.

Large payloads in Event History anti-pattern

Passing multi-megabyte payloads through Workflows when external storage (S3, blob storage) is more appropriate creates unnecessary storage costs. Use compression or the claim check pattern for large data.

Compression for large payloads cost optimization

Large payloads increase Active Storage costs. Implement a custom Data Converter with compression for moderately large payloads (100KB-1MB).

Claim check pattern for very large payloads

For very large payloads or binary data, store data externally (S3 or GCS) and pass references through Workflows.

PHP Workflow data serialization with DataConverter

Workflow method arguments and return values are serializable to a byte array using the provided DataConverter interface. The default implementation uses a JSON serializer, but alternative serialization mechanisms can be used. All inputs should be serializable to a byte array.

Give your agent this brain