Relative Content

Tag Archive for apache-flinkflink-streaming

Apache Flink AsyncRetryStrategy with RichAsyncFunction

AsyncRetryStrategy asyncRetryStrategy = new AsyncRetryStrategies.FixedDelayRetryStrategyBuilder(3, 100L) // maxAttempts=3, fixedDelay=100ms .ifResult(RetryPredicates.EMPTY_RESULT_PREDICATE) .ifException(RetryPredicates.HAS_EXCEPTION_PREDICATE) .build(); // apply the async I/O transformation with retry DataStream<Tuple2<String, String>> resultStream = AsyncDataStream.unorderedWaitWithRetry(stream, new AsyncDatabaseRequest(), 1000, TimeUnit.MILLISECONDS, 100, asyncRetryStrategy); This is example from official Flink docs Say we make 5 async API call inside the AsyncDatabaseRequest’s asyncInvoke method, does flink test the predicates […]

Flink State Processor API

I’m using Flink State Processor API to read the state of an application and re-write the state of one processor. If this one processor has registered event timers, do I have to read the registered timers and re-register them again when using the State Processor API?