SShortSingh.
Back to feed

Step-by-Step Guide: How to Create and Connect to a Linux VM on Microsoft Azure

0
·1 views

Microsoft Azure allows users to create Linux virtual machines through its cloud Infrastructure as a Service (IaaS) platform, eliminating the need for physical hardware. Users can set up a VM via the Azure Portal by configuring a resource group, selecting Ubuntu as the operating system, and enabling SSH and HTTP inbound ports. After deployment, it is recommended to extend the public IP idle timeout from the default 4 minutes to 30 minutes to avoid connectivity disruptions. The VM can then be accessed remotely from a local terminal using an SSH command with the assigned public IP address. This setup is particularly suited for beginners using a free-trial Azure account for learning or testing purposes.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

Production Security Checklist for SaaS Apps: Auth, Authorization, and Data Isolation

A developer guide from the Full Stack SaaS Masterclass series outlines the core security practices teams should implement before launching a multi-tenant SaaS application to production. On authentication, it recommends using bcrypt or argon2 for password hashing, keeping access tokens short-lived, and storing session tokens in httpOnly cookies rather than localStorage to prevent XSS-based session theft. Refresh token rotation with a token family mechanism is highlighted as an early investment worth making, since detecting and revoking compromised session chains becomes far harder to retrofit after a breach. For multi-tenant authorization, the guide stresses that tenant IDs must always be derived from the authenticated session rather than client-supplied inputs, as a missed organizationId filter in a database query can silently expose one tenant's data to another. Database-level controls such as Postgres row-level security are recommended as a backstop alongside application-layer checks, not as a replacement for them.

0
ProgrammingDEV Community ·

How to Tune SaaS App Performance Before Launch Using Data, Not Guesswork

A technical guide from the Full Stack SaaS Masterclass series outlines how developers should approach performance tuning before launching a SaaS product. Unlike security, slow performance causes no visible errors but silently drives users away, making it easy to overlook. The author warns against optimizing by intuition, instead recommending measurement of three key metrics first: server response time, database query time, and frontend paint time. PostgreSQL's pg_stat_statements extension is highlighted as a lightweight tool to identify the slowest and most frequently run queries without needing a full APM setup. Two database patterns — N+1 queries and missing indexes — are identified as the most common culprits behind slow response times in typical Postgres-backed SaaS applications.

0
ProgrammingDEV Community ·

Redis Cache Invalidation: TTL, Explicit Delete, and Event-Driven Strategies Explained

Cache invalidation is widely considered one of computer science's hardest problems because a cached value becomes stale the moment the underlying database changes. The simplest approach is TTL-based expiry, where entries automatically reload after a set time, making it suitable for data where brief staleness is acceptable. For stricter freshness requirements, explicit delete-on-write invalidation removes cache keys immediately after a database update, though developers must carefully track every key tied to a given piece of data. Tag-based invalidation addresses this by grouping related keys into Redis sets, allowing a single operation to clear all affected entries when one entity changes. In distributed systems with multiple services, event-driven invalidation further extends this model by broadcasting change signals so any service holding stale data can react promptly.

0
ProgrammingDEV Community ·

Refresh-Ahead Caching: How Redis Keeps Hot Keys Warm Before They Expire

Refresh-ahead is an advanced Redis caching pattern designed to eliminate cache misses for frequently accessed, predictable data. Unlike standard cache-aside, which waits for a key's TTL to expire before reloading it from the database, refresh-ahead proactively renews keys in the background while they are still valid. This prevents users from experiencing slow synchronous reloads and avoids cache stampedes, where multiple requests simultaneously hit an expired key. Implementation can be done at the application level by checking remaining TTL on each read and triggering an async refresh near expiry, or via a scheduled background job for a fixed set of critical keys. The pattern is intentionally targeted rather than universal, as applying it broadly would waste database resources on speculative refreshes for data that may never be requested again.

Step-by-Step Guide: How to Create and Connect to a Linux VM on Microsoft Azure · ShortSingh