# Open Sourcing a Successful Internal Project

- Speaker: [Natan Silnitsky](/wiki/speakers/natan-silnitsky.md)
- Event: [Reversim Summit 2021](/wiki/years/2021.md)
- Video: https://www.youtube.com/watch?v=VLojgjqSNnE
- Transcript: [/transcripts/2021/11-VLojgjqSNnE.md](/transcripts/2021/11-VLojgjqSNnE.md)
- Language: Hebrew and English · Type: talk · Level: intermediate
- Topics: [Open Source](/wiki/topics/open-source.md), [Microservices](/wiki/topics/microservices.md), [Distributed Systems](/wiki/topics/distributed-systems.md), [DevOps](/wiki/topics/devops.md)

> Written by an LLM from machine transcripts. It can contain errors. Check the transcript before you quote it.

## Summary

The speaker shares the experience of open-sourcing a successful internal Scala library that simplifies event-driven programming and Kafka usage. The talk discusses the architectural challenges of maintaining code used extensively inside a company while exposing it to the open-source community. The speaker explains how an automated synchronization service and a modular layer design allow teams to move fast without accumulating technical debt. Ultimately, the audience learns strategies for managing open-source syncs and safely accepting external contributions.

## Key points

- [0:11](https://www.youtube.com/watch?v=VLojgjqSNnE&t=11s) The speaker introduces the challenge of open-sourcing a successful internal project without slowing down internal development or accumulating technical debt.
- [1:31](https://www.youtube.com/watch?v=VLojgjqSNnE&t=91s) The speaker compares managing two separate code versions versus maintaining a private repository with automatic synchronization to a public one.
- [2:31](https://www.youtube.com/watch?v=VLojgjqSNnE&t=151s) The speaker presents the internal Scala library, which wraps Kafka SDKs to provide a simpler event-driven programming model used by thousands of microservices.
- [4:39](https://www.youtube.com/watch?v=VLojgjqSNnE&t=279s) The project was redesigned with a modular architecture to separate core functionality from company-specific internal configurations.
- [5:40](https://www.youtube.com/watch?v=VLojgjqSNnE&t=340s) A dedicated synchronization service utilizing Google's Copybara tool was built to automatically create pull requests in the public repository for exposed layers.
- [6:42](https://www.youtube.com/watch?v=VLojgjqSNnE&t=402s) External contributions from the open-source community are handled securely by triggering Slack alerts and manually reviewing PRs before merging them back into the private repository.

## Takeaways

- Design libraries with a modular layer structure to easily separate open-source code from internal, company-specific integrations.
- Use automated synchronization tools like Copybara to keep private and public repositories in sync without manual overhead.
- Establish a secure review workflow using notifications to safely accept and merge external contributions back into your internal codebase.

## Questions this talk answers

- How can a team maintain an open-source project without slowing down internal development and version releases?
- What architectural patterns help separate internal business logic from public open-source libraries?
- How can you securely review and merge external contributions from an open-source community back into a private enterprise repository?

## Technologies

Scala, Java, Apache Kafka, Copybara

## Tags

code sharing, devops, event-driven architecture, kafka, microservices, open source, scala
