Best of DevBlogsJuly 2025

  1. 1
    Article
    Avatar of devblogsDevBlogs·44w

    Integration testing for Go applications using Testcontainers and containerized databases

    Testcontainers for Go enables integration testing with real database dependencies by spinning up lightweight Docker containers during test execution. The approach eliminates the need for mocking or maintaining separate test environments while providing isolation and repeatability. Using Azure Cosmos DB emulator as an example, the tutorial demonstrates container setup, test execution, and automatic cleanup through the testcontainers-go package. The solution handles TLS configuration, client authentication, and lifecycle management automatically, making it applicable to other containerized services like PostgreSQL and Kafka.

  2. 2
    Article
    Avatar of devblogsDevBlogs·47w

    Local AI + .NET = AltText Magic in One C# Script

    A practical guide showing how to generate image alt text using .NET 10's new script execution feature and local AI models via Ollama. The tutorial demonstrates creating a complete solution in a single C# file that can analyze images and produce accessibility-friendly descriptions without cloud dependencies or rate limits.

  3. 3
    Article
    Avatar of devblogsDevBlogs·43w

    Scaling multi-tenant Go applications: Choosing the right database partitioning approach

    Hierarchical partition keys in Azure Cosmos DB solve common multi-tenant application challenges like partition imbalance, hot partitions, and inefficient queries. By implementing up to three levels of partitioning (tenant, user, session), developers can achieve better data distribution and query performance. The approach enables targeted queries that consume fewer Request Units while maintaining tenant isolation and allowing independent scaling of logical partitions.

  4. 4
    Article
    Avatar of devblogsDevBlogs·45w

    Microsoft for Python Developers Blog

    Microsoft released July 2025 updates for Python, Pylance, and Jupyter extensions in VS Code. Key changes include the Python Environments extension being bundled as an optional dependency with enhanced environment management features like one-click setup and automatic terminal activation. PyREPL has been disabled for Python 3.13+ due to indentation and cursor issues. Additional improvements include better Poetry support, automatic git-ignore for .venv folders, improved environment deletion, and experimental MCP tools in Pylance.

  5. 5
    Article
    Avatar of devblogsDevBlogs·43w

    Building AI Agents with the A2A .NET SDK

    Microsoft announces the A2A .NET SDK, implementing the Agent2Agent protocol for building collaborative AI agents. The SDK enables .NET developers to create agents that can discover each other's capabilities, communicate through messages or tasks, and support real-time streaming. The tutorial demonstrates building a simple echo agent with ASP.NET Core integration, showing both synchronous and asynchronous communication patterns. The SDK strengthens the AI ecosystem by providing standardized agent-to-agent communication, particularly benefiting Azure AI Foundry and Semantic Kernel users.