conductor icon indicating copy to clipboard operation
conductor copied to clipboard

Netflix Team - Enterprise Guidance

Open jvemugunta opened this issue 8 years ago • 8 comments

I lead the Enterprise Architecture Team at Florida Blue. We are convinced Netflix Conductor is the right workflow engine for our company. We want to push into production in the next month and want to run this platform in our DataCenters. We have regulatory rules and can't run on cloud

Few questions

  1. How many workflows does Netflix run every day?
  2. Do you have the list of companies that are using Netflix Conductor in Production
  3. We are building a dedicated team on this platform. Does Netflix encourages collaboration for enhancements?
  4. Debating on the database storage - MYSQL vs REDIS. We need Point of Time Recovery for 7 years worth of Workflows. Does REDIS support this kind of storage and point of time recovery requirements like traditional RDBMS systems

Appreciate your guidance

jvemugunta avatar Jul 03 '18 14:07 jvemugunta

  1. We run over 10 million workflows per month.
  2. I don't have a list. @v1r3n do you?
  3. Yes we encourage collaboration, e.g. we are currently collaborating with Github on 2.0 development where gRPC support is being introduced, plus other features.
  4. @ipapapa can you address this question?

cyzhao avatar Jul 04 '18 19:07 cyzhao

Thank you @cyzhao . Very encouraging.

  • How complex are the workflows used at Netflix? Most of our workflows are long lived tasks and are very complex in nature that can span for days to weeks. We are thinking about using WAIT tasks to meet this requirement. Are there better alternatives?

  • Regrading Workers, When there are no a scheduled tasks , constant polling for tasks can lead to performance on RDBMS database engines . I don't know how this works internally with REDIS. Do we have plans to introduce some kind of caching layer over DB system when an empty task is polled for an infinite amount of time

  • Transactional Support - The current DAO model for REDIS doesn't support transactions. I was able to prove by enabling a break point in the code and let few inserts happen into REDIS and stop the server. The client gets the error message as "unable to start the workflow". When the REDIS server is bought back, I see the workflow state in "NON-WORKABLE" conditions" with only partial data in the REDIS keys. Is there an API we can use to clean up these "INCOMPLETE" workflow data from the underlying DB system

  • Race Conditions - I can see race conditions with MYSQL DAO code and getting surfaced with high volume perf testing (100 concurrent users with 1000 iterations ). I didn't spend if the same is true for REDIS DAOs https://github.com/Netflix/conductor/blob/bdd7061d6c5609b43e8969fefce938be93a571e1/mysql-persistence/src/main/java/com/netflix/conductor/dao/mysql/MySQLQueueDAO.java#L247-L263

jvemugunta avatar Jul 04 '18 20:07 jvemugunta

@jvemugunta 4. I do not recall seeing an API that can do that in Redis. At Netflix, we mainly use it against Dynomite/Redis. You can read the Redis persistence documentation for more details. For disaster recovery, we store the data to the drive and backup it daily to S3. We use a timestamp in the title of the file so that we can go back in time.

ipapapa avatar Jul 05 '18 04:07 ipapapa

@jvemugunta

  • We do have very complex workflows where long running tasks are involved, WAIT task can certainly be used to meet this requirement, just make sure that timeoutSeconds of the task is configured properly.
  • We don't use queue implementation based on MySQL here at Netflix, and currently don't have a plan to improve its polling mechanism, your contributions are very welcome.
  • We do realize transactional support is not there and are currently looking into addressing it possibly as part of 2.0.
  • We don't use MySQL DAO, again we welcome your contributions here as well.

cyzhao avatar Jul 05 '18 18:07 cyzhao

@jvemugunta

We don't actively maintain the list of production users of Conductor outside Netflix. Based on the information we have so far, we have seen it being used across wide set of industries ranging from media/entertainment to supply chain.

v1r3n avatar Jul 06 '18 14:07 v1r3n

thanks @cyzhao @ipapapa @v1r3n for your comments.

Constant polling for empty tasks may be overkill for relational databases resulting into deadlocks with concurrent worker threads polling for same tasks. I am researching on the caching techniques. Will reach out to you if I find an efficient solution.

jvemugunta avatar Jul 06 '18 22:07 jvemugunta

Thanks @jvemugunta for the question. @cyzhao do we have concrete plans for transactional support in 2.0 ? Is there a ticket we can follow ?

mudit3774 avatar Jul 09 '18 10:07 mudit3774

@mudit3774 we don't have a concrete plan yet, currently we don't use github as ticketing system but we will definitely consider.

cyzhao avatar Jul 12 '18 06:07 cyzhao