Building complex AI-powered applications often requires that the system has to parse and process an output of an AI. Previously, Amazon Bedrock developers had to instruct the AI to print JSON or XML as the response in their model prompts, which was error-prone and often contained hallucinations. With the introduction of Bedrock Agents, developers can define schemas in the OpenAPI format and instruct their AI to use external APIs to retrieve the required data or to perform the requested operations.
Continue readingThe first generation of GPU instances was introduced by AWS back in 2010. The industry has changed dramatically since then and nowadays server-side GPUs are widely used for a broad range of tasks - from machine learning to media processing. In this article we're going to build a server that can securely run graphical applications in isolated environments and leverage on the power of modern GPUs.
Continue readingBuilding and operating a machine learning system is a process that consists of many components and involves multiple specialists with various skill sets. The iterative nature and constant evolution of such systems amplifies the complexity to the point that it could become challenging to handle it even for a large and experienced team. Luckily, with the right tools at hands, it is possible to streamline this journey. Let’s take a look on how such pipeline could be built from the ground up.
Continue readingComputer vision in general and facial recognition in particular are rapidly growing fields of computer science that can be beneficial in or even revolutionize some areas, such as transportation or retail. In this article we're going to look closely at how such system could be built.
Continue readingAmazon has recently released ARM64 support for Lambda based on Graviton2 processors. They claim that the new architecture provides better price performance. Let's take a look how it stands up against the classic x64 CPU in some real-world scenarios.
Continue readingAWS Lambda is a mature, feature-rich computing platform. While it's very straightforward and simple to use for backend developers, when it comes to the performance tuning, there are a few things to keep in mind.
Continue readingPassport.SocketCluster is a SocketCluster middleware that can be used to authenticate socket connections with Passport.js.
Continue readingWhen using OAuth2 on the server, chances are that you will have to renew your access tokens with the OAuth2 refresh tokens workflow. Passport.js has several authentication strategies that handle OAuth2 authentication, but refreshing access tokens is something that you still need to do yourself manually (e.g. using passport-oauth2-refresh strategy with a CRON job). passport-oauth2-middleware automates this process and can fetch a new access token on request when an old one is about to expire.
Continue readingOne of the most common tasks when developing a rich web application with JavaScript or Flash is data access and authentication. The workflow is usually straightforward when you have control over the API, but things can get pretty complicated when you need to work with a 3rd-party service directly from the client side.
Continue readingFlashWarp is a library that makes JavaScript-Flash interaction easy and powerful. In addition to generic ExternalInterface features, it allows to define two-way bindings between Flash and JavaScript.
Continue reading