New to Kestra?
Use blueprints to kickstart your first workflows.
Fan out a JSON array into parallel Redis SET operations with Kestra. Declarative YAML, configurable concurrency, retries, and full run lineage.
Loading many keys into Redis one request at a time is slow, and hand-writing a loop with connection handling, error checking, and concurrency control is tedious. This blueprint takes a JSON array supplied at runtime and fans it out into parallel Redis SET operations, writing one key per array entry against your Redis data store. It is a clean pattern for warming caches, seeding lookup tables, or bulk-populating feature flags and configuration keys.
values input accepts a JSON array, where each element is an object
whose key becomes the Redis key and whose value list seeds the Redis value.parallel task (io.kestra.plugin.core.flow.ForEach) iterates over
{{ inputs.values }} with concurrencyLimit: 0, so every entry runs at the
same time instead of sequentially.set task (io.kestra.plugin.redis.string.Set) connects
to Redis over url and writes a key derived from
{{ json(taskrun.value) | keys | first }} with serdeType: STRING.jq expression
({{ taskrun.value | jq('.[]') | first }}), taking the first element of the
nested list.Redis itself has no scheduler, no retry policy, and no run history. Kestra adds event and schedule triggers, automatic retries on transient connection failures, and full execution lineage so you can see exactly which keys were written and when. The whole job is declarative YAML, so the fan-out logic and concurrency control live in source control instead of a one-off script.
url.This flow connects to Redis with an unauthenticated url and references no
secrets. If your Redis requires credentials, store them with
{{ secret('REDIS_URL') }} and reference that in the url property.
docker run --name myredis -p 6379:6379 -d redis.url in the set task to point at your Redis host.values array or pasting your own.redis-cli KEYS '*').serdeType to JSON to store structured values instead of strings.concurrencyLimit to a positive number.Schedule or event trigger to refresh keys on a cadence.