BLOG — Updates

248 days ago

Low Latency Web3 Function Executions are Live!

Gelato’s Web3 Functions bridge the gap between on-chain and off-chain worlds, allowing developers to execute smart contracts based on arbitrary off-chain data (APIs, subgraphs, etc) & computation. While setting up a Web3 Functions task, developers were previously constrained to execute these functions at pre-defined intervals set by the protocol, such as every minute.

Custom Time Intervals

We're changing the game with Custom Time Intervals!

These custom time intervals allow developers to decide how frequently their Web3 Functions execute, ranging from rapid 5-second intervals to more extended periods. Whether users seek high frequency & low latency or prefer a low frequency to optimize resource usage, this flexibility is tailored to enhance dApps in precision, efficiency, and overall performance.

Key Advantages

  1. Reduced Latency Configuring Web3 Functions to intervals as short as every 5 seconds significantly reduces latency. This sharpens the precision of tasks and also uplifts the entire user experience. This becomes particularly vital for tasks like Oracles, liquidations, and limit orders which rely on rapid reactions in various scenarios, including price shifts and more.

  2. Optimal Resource Utilization Not every task needs a lightning-fast response. Tasks like harvesting vaults or claiming rewards might not require the pace of a 5-second interval. With custom intervals, developers can adjust the time interval to longer periods, ensuring resources are used efficiently. This also allows for the flexibility to save on runs, for instance, by setting them to operate just once every day.

Seamless Integration & Customization

Implementing this feature is as straightforward as its concept. During the Web3 Function Task creation, developers can easily specify their preferred interval. This can be done via our user-friendly UI, SDK, or directly with a smart contract.

There are two ways to customize the Time Interval:

  1. Specific Time Durations

With this, you can set specific time durations for the tasks, choosing frequencies like every 1 hour, 2 days, or even interval as short as 5 seconds.

  1. Cron Expressions

By using cron expressions, you can set highly customizable times, such as "0 0 * * *" which means the task will run every day at midnight.

Conclusion

With Web3 Functions custom time interval users now have the flexibility to benefit either from high frequency & low latency or from a low frequency for optimized resource usage. This feature is tailored to ensure that developers can effortlessly tap into its vast capabilities, consequently enhancing the performance of their dApps with ease.

About Gelato

Gelato is web3’s decentralized backend empowering builders to create augmented smart contracts that are automated, gasless & off-chain aware on all major EVM-compatible blockchains including Ethereum, Arbitrum, Polygon, Optimism, zkSync, and many more. Over 400+ web3 projects rely on Gelato for years to power the execution of millions of transactions across DeFi, NFT, and Gaming.

Gelato currently offers four services:

  • Web3 Functions: Connect your smart contracts to off-chain data & computation by running decentralized cloud functions.

  • Automate: Automate your smart contracts by executing transactions automatically in a reliable, developer-friendly & decentralized manner

  • Relay: Give your users access to reliable, robust, and scalable gasless transactions via a simple-to-use API

  • Gasless Wallet: A powerful SDK that enables developers to provide a world-class UX by combining Gelato Relay + Safe's Smart Contract Wallet, enabling Account Abstraction

Subscribe to our newsletter and turn-on your Twitter notifications to get the most recent updates about the Gelato ecosystem!

If you are interested in being part of Gelato team and build the future of the internet browse the open positions and apply here.