Home / Companies / Liblab / Blog / July 2023

July 2023 Summaries

3 posts from Liblab

Filter
Month: Year:
Post Summaries Back to Blog
In this article from the liblab blog, we're exploring ways to make your TypeScript-based SDK more maintainable. The focus is on managing API routes within the SDK. We'll be discussing how to alias types, statically define data structures, make routes and arguments more resistant to typos, use generics for code reuse, and tying it all together with our defined types. Some limitations of these tips are also mentioned, including avoiding using `any` keywords and dealing with type guards/generic functions that can get complex. Finally, we'll talk about how liblab's SDK generation tools can help avoid the need to develop an SDK altogether.
Jul 28, 2023 1,679 words in the original blog post.
API performance metrics are crucial for measuring the efficiency of a system and ensuring that it can handle a large volume of requests. Three key metrics to consider are Response Time, Throughput, and Latency. Response time measures the time it takes for an API to respond to a request from a client application, while throughput measures the number of requests an API can handle within a given time period. Latency is another important metric that measures the time taken for a client to send a request and get back a response from an API server. Factors affecting these metrics include network latency, database queries, caching mechanisms, and load balancers. To improve these metrics, developers can employ techniques such as optimizing code, implementing caching mechanisms, using horizontal scaling, asynchronous processing, and monitoring API performance with tools like Apache JMeter, Datadog, and New Relic. Additionally, monitoring CPU utilization and memory usage is essential to ensure optimal performance and prevent system instability. By leveraging services like liblab, API providers can generate SDKs for their APIs, further enhancing their developer experience and accelerating the integration process.
Jul 11, 2023 1,467 words in the original blog post.
The text discusses the concept of pragmatism in software engineering, a mindset that values adaptability, practicality, and continuous learning. Pragmatic engineers possess key behaviors such as being an early adopter, curious, critical thinker, grounded in realism, and embracing a broad spectrum of knowledge. They prioritize finding options over excuses, ask questions to gain understanding, refactor or remove parts if necessary, assess needs and implement improvements, and seek resources and collaboration. The text also explores the "broken windows" theory, which highlights how technical debt can accumulate and lead to project failure, and how pragmatic engineers resist causing further damage by addressing known issues and creating plans to fix them. A story about making a stone soup is used as an analogy for teamwork, resourcefulness, and problem-solving in software engineering, where pragmatic engineers challenge others, act as catalysts for change, inspire others, transform vision into reality, and create a win-win situation. The text concludes by reflecting on the importance of applying these concepts and encourages readers to engage with them and hold themselves accountable.
Jul 04, 2023 1,851 words in the original blog post.