Antsand Moving to a Containerized Solution


One might argue that containerization should have been adopted long ago. After all, my current stackPHP, Phalcon, Vue, and MySQLhas served us well on EC2 without any major issues. When hosting on AWS, every bit of compute power is dedicated solely to our application. However, as the landscape shifts with rising tariffs and growing anti-American sentiment, it's becoming increasingly important to reexamine our architecture. The plan is to eventually move Antsand outside of Amazon and deploy it on on-premises servers. This move not only enhances data sovereignty but also provides greater flexibility in tailoring features and services.

The Current Setup and Its Limitations


At present, our stack works amazingly well, but it comes with some trade-offs:

Manual Upgrades: Upgrading PHP, Phalcon, MongoDB, and other components is a manual process. This increases the risk of downtime and errors.

Challenging CI/CD: The current configuration makes continuous integration and deployment more cumbersome. While it's technically possible to add services like an object store, mail services, or a vector store directly, doing so without a robust CI/CD process can lead to fragmented and error-prone deployments.

Compute Efficiency: Running directly on EC2 ensures that every compute cycle goes toward the application itself, without any overhead from container orchestration.

Why Consider Containerization?

The benefits of containerizing Antsand become apparent when we look at the broader picture:

Streamlined Upgrades: Containers encapsulate dependencies and environment configurations, making it easier to roll out updates and new features seamlessly.

Enhanced CI/CD: A containerized environment can support a lightweight Kubernetes layer or similar orchestration tools. This setup would enable more robust CI/CD pipelines, automating testing and deployment processes.

Future-Proofing: As we integrate additional servicesbe it an object store, sophisticated authentication via Keycloak, vector databases for AI, or even a graph databasethe complexity of our ecosystem will increase. Containerization offers a structured way to manage these evolving requirements.

On-Premises Transition: The long-term vision includes moving away from AWS. By planning a containerized solution now, we can prepare Antsand for a smooth transition to on-prem servers, like the anticipated Xeon 6 servers from Supermicro.

The Trade-Offs

It's important to acknowledge that containerization isnt without its downsides:

Compute Overhead: Running containers introduces some level of overhead. If we're operating on a simple laptop or a minimal server, the benefits of containerization may not outweigh the compute cost.

Decision Point:
The choice to containerize will largely depend on the hardware at hand. If we stick with modest compute resources, we might continue with the current setup. However, with the acquisition of robust Xeon 6 servers, containerization becomes a much more compelling option.

Looking Ahead

While Antsand is primarily an internal tool for Antshiv Robotics, these updates serve as a heartbeat to share our evolving architecture and strategic direction. In the coming weeks, we plan to refine our architecture further, exploring containerization as a pathway to scalability, enhanced service integration, and improved data sovereignty. Whether or not we containerize immediately, our roadmap is clear: were preparing Antsand for a future where flexibility and robustness are paramount.

Stay tuned for more updates as we continue to explore these architectural shifts and strive to build a more scalable, resilient, and feature-rich platform.

Feel free to share your thoughts or questions in the comments below. Your feedback is invaluable as we navigate this exciting phase of Antsand's evolution.
Written by Anthony Shivakumar
Founder, Lead Marketing and Software Developer at ANTSAND

Anthony has a Master Degree in Electrical and Computer Engineering. He has worked in major software firms for the past 15 years and currently runs his own software and marketing company.

He continues to write articles related to marketing, programming, sales and growth hacking.

0 Comments

Leave a Reply

Make sure you fill in all mandatory fields.Required fields are marked *