CTO and co-founder · Current
Knowlens
Knowlens is a video-first learning platform for enterprise clients, co-founded in 2014. What started as a fairly straightforward learning platform has grown to include content creation tools, AI workflows, enterprise integrations and the infrastructure needed to support them. My role has changed along with it. I started with hands-on development and now spend more time on architecture, infrastructure and working with the engineering team, though I still get involved in proofs of concept and exploring new approaches.
Context
Companies use Knowlens to train employees and their sales and distribution networks. Learners take video courses, complete microlearning modules, attempt quizzes and assessments, and track progress through web and mobile apps.
Administrators manage users, assign learning paths, upload content, conduct live classes and generate reports. SCORM support allows clients with existing LMS systems to use Knowlens courses without migration.
The platform has developed specialized modules for insurance, retail, banking and financial services, with integrations to clients' HRMS, LMS and internal systems becoming increasingly important for larger organizations.
What I worked on
- Core learning platform: multi-organisation user and course management, REST APIs, mobile apps (Android/iOS), scheduled reminders, reporting, user synchronisation, administration and learner portals.
- Video processing and delivery: AWS MediaConvert transcoding to adaptive HLS, CloudFront delivery with signed URLs, browser-based video editor with on-demand GPU rendering that scales with job queues.
- Content creation: PowerPoint and document conversion to narrated videos on Fargate, PDF conversion for cross-device access, automated processing pipelines.
- AI workflows: transcription and subtitles (AWS Transcribe, Step Functions), AI voice-over and dubbing, writing assistant for content creation (Bedrock), semantic search using transcription, Textract, embeddings and OpenSearch to find information within videos and documents.
- Learning analytics: active learning-time tracking beyond completion metrics, content-health telemetry monitoring video and document performance, serverless processing with administration reporting.
- Infrastructure and operations: AWS (EC2, RDS, S3, Lambda, SQS, SNS, SES, ECS, EventBridge, WAF), automated releases, CIS hardening, public status page, overnight cost scaling, gradual Terraform migration. Twelve-year operational continuity includes framework upgrades, OS updates and service migrations (PHP 8.3 on Ubuntu 24.04, SCORM to S3/CloudFront).
- Next-generation platform: multi-tenant LMS with AI-first design, branded academies per client on custom domains, Next.js and Fastify services, PostgreSQL with pgvector, xAPI learning record store, AI-assisted content creation and dubbing, research into course generation from source material.
Some of the decisions along the way
Over twelve years, quite a few technical decisions have needed revisiting as the platform, our customers and the available technologies have changed. Some have been straightforward upgrades. Others have involved choosing between improving what we already had and building something differently.
Moving to a new stack
The existing platform was built on PHP and Yii. It has served us well, but over time some of the earlier decisions have made development and maintenance more difficult.
We considered moving to Yii3 or rebuilding on Laravel. Neither was a straightforward upgrade. Yii3 isn't a drop-in replacement for Yii2, and moving to Laravel would also involve substantial work.
Hiring was another consideration. Most PHP developers we encounter in India are familiar with Laravel, while finding experienced Yii developers is considerably harder.
If we were going to undertake a substantial rewrite anyway, we felt it made more sense to move to a different stack rather than invest in another PHP framework.
The new platform uses Next.js and Node.js, with Fastify services and PostgreSQL. We're targeting January 2027 for launch, while the existing platform continues serving customers.
Keeping the existing platform running
Building a replacement doesn't remove the responsibility of maintaining the current system.
Some of the framework and PHP versions we were running were approaching the end of security support. We also had enterprise integrations that needed to continue working without changes on the client side.
We upgraded production to PHP 8.3 on Ubuntu 24.04 and moved SCORM hosting to S3 behind CloudFront. These were changes to the existing platform, not part of the new build.
We've now limited further investment in the existing platform to maintenance, security, support and onboarding new customers. New feature development is focused on its replacement.
Existing customers won't be forced to move immediately. They can migrate when they're ready, either with our help or on their own.
Not consolidating the services before the pilot
One of the architecture reviews of the new platform raised a concern about the seven services we'd built. The review described the architecture as a distributed monolith and recommended consolidating them into two or three deployable units.
It was a reasonable recommendation, but we were only days away from a pilot involving 15 tenants. Tenant isolation depended on row-level security, and changing the service boundaries could have introduced problems that wouldn't be obvious during testing.
We decided to keep the existing structure for the pilot rather than make a substantial architectural change so close to delivery.
We've identified the conditions under which we'd reconsider: if the shared database becomes a bottleneck, if the cost of running the services becomes unreasonable, or if individual modules need to scale independently.
Protecting video without commercial DRM
Content protection has been important to Knowlens because much of the learning material is licensed to enterprise clients.
We looked at commercial DRM options, including Widevine, FairPlay and PlayReady. They provide stronger protection, but also introduce licensing costs and additional operational complexity.
Our requirement was more limited. We needed to prevent straightforward downloads and discourage casual copying, rather than provide studio-grade content protection.
We chose encrypted HLS with signed access and authorised key retrieval. This also works across client-specific domains, where cookie-based approaches can become complicated.
There are trade-offs. We don't support offline playback, and revoking access doesn't necessarily interrupt a video that's already playing until its current authorisation expires.
Those limitations were acceptable for our use case, given the additional cost and complexity of commercial DRM.
What I'd do again, or differently
Knowlens has changed quite a bit since we started in 2014, and the work has changed with it. For now, we're maintaining the existing platform while building its replacement, with the aim of making the transition manageable for both our customers and the engineering team.
- AWS
- Video pipelines
- LMS
- Enterprise integrations
- Vector search