# Cracking Into Black Boxes - Unattainable Integrations

- Speaker: [Lilach Ritter](/wiki/speakers/lilach-ritter.md)
- Event: [Reversim Summit 2021](/wiki/years/2021.md)
- Video: https://www.youtube.com/watch?v=p9QDGERkyyo
- Transcript: [/transcripts/2021/55-p9QDGERkyyo.md](/transcripts/2021/55-p9QDGERkyyo.md)
- Language: Hebrew · Type: talk · Level: intermediate
- Topics: [Microservices](/wiki/topics/microservices.md), [Debugging](/wiki/topics/debugging.md), [Software Engineering](/wiki/topics/software-engineering.md), [Technical Debt](/wiki/topics/technical-debt.md)

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

## Summary

The speaker shares practical lessons and tools for building and debugging complex integrations with legacy systems and government health organizations, referred to as black boxes. Facing undocumented APIs, lack of sandboxes, and rigid bureaucracy, the speaker used creative hacking methods such as on-site visits and local field support. The talk emphasizes regaining control over the integration process by maintaining immutable data, implementing custom retry mechanisms, and developing internal debugging dashboards. Ultimately, the audience learns how to handle unpredictable integration environments where traditional documentation and support are unavailable.

## Key points

- [4:29](https://www.youtube.com/watch?v=p9QDGERkyyo&t=269s) Integrating with healthcare and government systems often means dealing with undocumented APIs, unresponsive partners, and legacy technologies.
- [6:30](https://www.youtube.com/watch?v=p9QDGERkyyo&t=390s) The integration project relied on Mesh, an aging messaging protocol from the late 1990s used by the UK health service.
- [8:30](https://www.youtube.com/watch?v=p9QDGERkyyo&t=510s) When standard communication failed, the team traveled to the UK to find friendly local IT personnel and partners who could help them understand the system.
- [11:37](https://www.youtube.com/watch?v=p9QDGERkyyo&t=697s) After going live, unmonitored production errors revealed that dozens of patient messages failed to reach their destination, proving that integrations are living systems that require active debugging.
- [16:55](https://www.youtube.com/watch?v=p9QDGERkyyo&t=1015s) To handle unstable networks and failed requests in production without manual intervention, the team built a Slack bot for retrying failed messages.
- [21:12](https://www.youtube.com/watch?v=p9QDGERkyyo&t=1272s) Storing immutable data and every retry attempt in the database ensures complete visibility and traceability of message lifecycles.
- [24:22](https://www.youtube.com/watch?v=p9QDGERkyyo&t=1462s) Using shared correlation IDs with third-party partners allows both sides to speak the same language and accurately track message states.
- [26:24](https://www.youtube.com/watch?v=p9QDGERkyyo&t=1584s) Building custom dashboards enables non-technical field teams to manage the integration flow and resolve errors independently.

## Takeaways

- Build custom retry mechanisms and backdoors to maintain control over integration retries instead of relying on external services.
- Store immutable audit logs and request lifecycles in your database to easily debug and trace failures.
- Establish shared identifiers with third-party partners to effectively correlate errors and messages across systems.
- Empower non-technical field or support teams with dedicated dashboards to handle routine integration issues.

## Questions this talk answers

- How do you integrate with legacy systems that lack documentation and sandboxes?
- What strategies can developers use to maintain control when third-party APIs fail unpredictably?
- How do you design a robust monitoring and retry mechanism for asynchronous integrations?

## Technologies

Slack

## Tags

api, debugging, integrations, legacy systems, microservices, monitoring, production support
