teleren/devto huggingface dataset:
API Insights: Most API requests are made on Wednesdays
Tags: api, apiendpoints, apiinsights, apirequests
Published: 2023-12-19 10:37:35

---
title: API Insights: Most API requests are made on Wednesdays
published: true
date: 2023-12-15 15:06:38 UTC
tags: API,APIendpoints,APIInsights,APIrequests
canonical_url: https://shiftmag.dev/api-insights-report-2332/
---

![](https://shiftmag.dev/wp-content/uploads/2023/12/API-insights-1.png?x35993)

_For more content like this **[subscribe to the ShiftMag newsletter](https://shiftmag.dev/newsletter/)**._

APIs account for 83% of all internet traffic, and 90% of developers use APIs in their daily jobs in one way or another, which confirms the saying that ‘APIs are eating the world’ and that we live in the API economy era.   
  
In their report on the state of API design, usage, and performance in 2023, [Anatomy of an API 2023](https://blog.treblle.com/the-anatomy-of-an-api-in-2023-a-comprehensive-overview/),[an APIOps platform Treblle](https://www.treblle.com/) looked at 9,000 APIs from various industries and analyzed **one billion API requests.**

## Understanding API Design and Performance

- The average API boasts 22 endpoints, with a trend towards microservice-oriented architectures.
- GET and POST are the most widely used HTTP methods, indicating a focus on information retrieval
- The study reveals a substantial presence of ‘zombie endpoints’, which pose security risks due to lack of maintenance.
- Success responses (2xx) dominate the HTTP response codes, with client errors (4xx) being four times more prevalent than server errors (5xx).
- Popular SDKs for API development include Laravel and NodeJS, reflecting the widespread use of PHP and Javascript

![](https://shiftmag.dev/wp-content/uploads/2023/12/API-insights-1024x538.png?x35993)

Other findings include a remarkable **96% growth of AI APIs compared to 2022**. This marks the change of APIs from simple data carriers into intelligent, adaptive interfaces capable of learning. It also means the creation of more intuitive and user-centric applications.  
  
Integration of APIs and AI also poses some risks and calls for more focus on data privacy, ethical considerations, and security. Security is, the study finds, still a critical challenge in API development. A concerning **51% of API requests lack authentication** , and 55% carry a medium threat level.

## API Trivia

- Wednesdays experience the highest volume of API requests
- In terms of time, the highest volume of API requests happened in Q3
- The United States leads in API request volumes, with Ashburn, Virginia, being the global hotspot due to AWS’s data centers.
- The average API has 22 endpoints.
- 20% of API endpoints remain unused for over 30 days
- Client-side errors are four times more common than server-side errors in API interactions.  
 

The post [API Insights: Most API requests are made on Wednesdays](https://shiftmag.dev/api-insights-report-2332/) appeared first on [ShiftMag](https://shiftmag.dev).
Emirates Sound - Car Audio Abu Dhabi 
Published: 2023-12-15 14:36:31

Emirates Sound is your premier destination for top-notch car audio components and accessories. Our experienced team works hard to meet your demands and provide you with the satisfaction you deserve. Through ongoing product development and training, we keep ahead of the curve as technology changes and satisfy all of your requests.

At Emirates Sound, we take pride in being a locally owned, independent company maintained by passionate automobile users. Our top-notch items are perfectly crafted to meet your unique needs. Discover a spotless and welcoming environment in our facility, where our highly qualified sales and support staff is prepared to offer you the best service. With Emirates Sound Auto Accessories, you can get the newest and best parts to give your automobiles a spectacular appearance and optimum performance. Emirates Sound offers best [Car Audio In Abu Dhabi.](
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/dyyrjo7wr0i4wdqy1zlx.png)

)

Address: P.O.Box: 26185, Near Invest Bank, Opp: Alkhalij Enterprises Musaffah, Sanayyah-M-2, Abu Dahbi, U.A.E
Email: info@emiratessound.com
Phone: +971 2 5556841
Mobile: +971 50 5181901
Website: https://www.emiratessound.com/
Emerge Medical Services - UAE Healthcare Companies
Published: 2023-12-15 14:26:48

Every step of the way, when working with Emerge Medical Services, you can rely on individualized, one-on-one attention.
We gain your trust by being receptive, perceptive, and truthful. We get your respect by completing projects on schedule and within the specified budget.
Our reputation was established via outstanding customer service. Check it out and see the difference. Emerge Medical Services is among top [UAE Healthcare Companies.](
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/411torv96fqnelqn14iq.png)

)

We are a group of dreamers, makers, and philosophers. To meet even greater standards, we are constantly improving our services.

Website- https://emerge.ae/
Address- Musaffah Building C119, M2 - Mohamed Bin Zayed City - Shabiya 12 - Abu Dhabi
Contact- +971 25855235
Email- operations@emerge.ae
Install Any Version of Node On Ubuntu
Tags: ubuntu, node
Published: 2023-12-15 14:20:58

## Install Package Manager
```
sudo apt update
sudo apt install snapd
```

## Check Available Version
```
snap info node
```
## Install Node
```
sudo snap install node --classic --channel=18/stable
```

## Update Node Version
```
sudo snap refresh node --channel=20/stable
```

## Uninstall Node
```
sudo snap remove -purge node
```
Unveiling the Eerie Trails of Carolina: Horror Stories That Send Shivers
Tags: horror, story, carolina
Published: 2023-12-15 14:17:35

The Carolinas, steeped in history and draped in natural beauty, hide a darker side beneath their charming facade. Whispers of ghostly encounters and chilling tales have woven themselves into the fabric of the region, creating a tapestry of horror that lingers in the minds of those brave enough to explore the haunted trails of Carolina.

One infamous Carolina ghost story originates from the haunted grounds of the Old Slave Trail in Charleston. Legend has it that the tortured spirits of enslaved individuals, who suffered unimaginable atrocities, still roam the area seeking justice and peace. Visitors report hearing ghostly cries and witnessing apparitions, a stark reminder of the haunting legacy of the past.

Venturing further into the heart of North Carolina, the Brown Mountain Lights mystify and terrify locals and tourists alike. These unexplained lights dance in the distance, sparking eerie speculation about extraterrestrial encounters or restless spirits. Scientists may offer rational explanations, but the locals remain entranced by the otherworldly glow that has ignited imaginations for generations.

The chilling tale of Lydia's Bridge in Jamestown, North Carolina, adds a touch of supernatural romance to the region. According to the legend, a jilted bride named Lydia tragically met her end on the bridge, and her spirit lingers, searching for her lost love. Witnesses claim to have seen a ghostly figure in a flowing white gown, and some even report feeling a cold hand brushing against them in the dark.

As night falls over the Carolinas, the dense forests and historic landmarks conceal a world of spine-tingling mysteries. Whether you're drawn to the Old Slave Trail's tragic history, the enigmatic Brown Mountain Lights, or the ghostly love story of Lydia's Bridge, Carolina's haunted trails promise an unforgettable and hair-raising experience for those who dare to uncover the secrets hidden in the shadows. [trails carolina horror stories](url=https://latestposting.com/unveiling-the-truth-navigating-trails-carolina-horror-stories/)
DIMS Medical Service - Medical Care Service In UAE
Published: 2023-12-15 14:15:22

DIMS is a company dedicated to providing business-friendly customer services to its clients, focusing on sustainability, growth, and innovative solutions. The company complies with the UAE health sector regulations, and its team of healthcare consultants are experts in managing compliance and laws accordingly.

DIMS provides various services related to commissioning hospitals, medical centers, and first aid posts. These services include support for facility engineering audit preparation and clearance, planning and preparing a technical task force with a strategy regarding business goals, and 100% clinical audit preparation and support. DIMS Medical Service offers best [Medical Care Service In UAE.](
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/g6sgmbhwxdj3pn6ch3sp.png)

)

 In addition, DIMS offers American Accreditation Commission International (AACI) services under the patronage of Life One EMS L.L.C. These services include accreditation, clinical certification, medical content certification, ISO 9001-certified quality management system, advisory services, and AACI academy training courses.

 DIMS' experts include Mr Dheeraj Khatore, Mr Joginder Singh Adhikari, and Dr ShaguftaAlam Khan, who have extensive experience in healthcare management and compliance. With their expertise and commitment to excellence, DIMS is a reliable partner for organizations seeking healthcare-related services in the UAE.
 Website- https://dims.ae
Contact- 971-50-1898600
Address- Khalifa St,AlAin, Abu Dhabi ,UAE
Coding task: implement mechanism that increments counter once 2 seconds
Tags: react, javascript, webdev, interview
Published: 2023-12-15 14:15:10

During the last technical interview, I received a coding task. The task description says: 

> click event from button element should change count value not more often than 2 seconds

Seems simple. The initial code looked like this:


![Initial task code](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fjwaf0rhcrrficqdxuu6.png)


The first notable issue: clicking the button reloads the whole page; that's bad behavior, but we will fix it later - no worries. 

---
## First iteration

Looking at a Counter's code, I thought about creating some kind of lock. We will set a lock on click and release it after 2 seconds. Clicking the button when the lock is set - won't increment the counter value.

I used `useState` for storing the lock flag and `useEffect` with the cleanup function to release it when the component was removed from the DOM.
Additionally, since we click the button I added `Event.preventDefault()` to prevent page reload on button click.

My code looked like this:

![First iteration code](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/02co7k2mm8y01nc1nus6.png)

That code worked perfectly fine... **_but was far from perfect_**.

---

## Second iteration

Then, I realized I had made heavy over-engineering here. 
Instead of using the `useState` hook, I could use `useRef` to store `timeoutID` (value returned by `setTimeout`). By using this solution, I knew that when the value stored in `useRef` hook is truthy (not null/undefined) I could not increment the value. In that case, I also added `useEffect` with cleanup (to remove running `setTimeout` callback). Finally, I've added `type="button"` attribute to the button - I was told I can do this to prevent page reloads. That attribute makes the button "has no default behavior, and does nothing when pressed by default". Now the code looked much cleaner and was still working correctly:


![Second iteration code](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/w59o68spjod682csiz5s.png)


In both cases, you can click the button to implement counter value once per 2 seconds. Clicking multiple times won't increment the value many times and only once when 2 seconds pass since the last increment. 

---

## Lessons learned:
- iterate solutions (you can find better ones after a while)
- `button[type="button"]` functionality (I missed it, and it's so easy to use)

I'm wondering how would you resolve this coding task. What would you improve / change / do better? Let me know, I'm super curious :) 

You can find (initial) code task in [codesandbox](https://codesandbox.io/p/sandbox/react-2-forked-pgjr43?file=%2Fsrc%2FApp.js)
Neovim users, what AI helpers have you been using besides Copilot?
Tags: neovim, vscode, ai, question
Published: 2023-12-15 14:13:26

Us neovim users should surrender to VSCode or other IDE's if we want to use all the Copilot stuff. But maybe I'm missing some other tools! What have you been using besides GitHub Copilot to tune up your IDE?
CommTogether - Small Business Marketing Sydney
Published: 2023-12-15 14:08:43

CommTogether is a brand marketing agency, helping your brand find its voice and making life as simple as possible for you for the past 30 years.

Our core communications and marketing services give the best marketing and branding ideas to help grow your business and brand authenticity. CommTogether offers best [Small Business Marketing In Sydney.](
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hczi7msjnv020v5bl84b.png)

)

Address: PO Box 730 Maroubra NSW 2035 AUSTRALIA

Phone No: 1300 723 033 or + 61 412 702 171

Website: https://www.commtogether.com.au/ 

Email Id: ctcom@commtogether.com.au
Monitoring an EC2 Instance with CloudWatch Alarm on AWS
Tags: aws, awscommunity, awscommunitybuilders
Published: 2023-12-15 14:08:03

## Monitoring an EC2 Instance with CloudWatch Alarm on AWS

<u>Summary</u>
Amazon Web Services (AWS) offers a powerful tool to monitoring & controlling of cloud resources. In this hands-on we will learn launching of Amazon EC2 Instance and set up an CloudWatch alarm.
 
<u>Requirements</u>
You should have an AWS account and required permissions to create an Amazon EC2 instance and CloudWatch alarm.

<u>Step:1 Launching an Amazon EC2 Instance</u>

- Navigate to the EC2 service through the AWS management console.

- Click the “Launch Instance” button and start creating your EC2 instance.

- Choose an AMI, here for this hands-on we will use Amazon Linux AMI.

- Choose the Instance type, here will go with basic t2.micro instance(free-tier eligible).

- Configure the instance count, network settings and other parameters stick to default.

- Create security groups to manage incoming and outgoing traffic to our EC2 instance.

- Review our configurations and click “Launch”.

- Once you created an EC2 instance, your created instance will show in the instance dashboard as below.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/e8o4kfu4rviy28mb60zr.png)

<u>Step:2 Monitoring EC2 Instance with CloudWatch Alarm</u>

- Choose your created instance and click the monitoring option, it will go to the CloudWatch console.

- In the CloudWatch console, choose “Alarm” option and click “create” button.

- Choose the “EC2” namespace and the metric you want to monitor.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fbg4rg2nr3tpfy168w14.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fp4eidc7ay0th47ocp7p.png)

- Set the condition, the threshold of CPU utilization of our created EC2 Instance (example:50%).

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6ap5i7mpbdld0eaqohyd.png)


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/bbo8kjw5zciwtwhk3lps.png)

- Configure actions to our created alarm, such as sending notifications through Amazon SNS.

- Review the configurations and click “Create Alarm”.

Now we have created an CloudWatch alarm for our created EC2 instance.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/i75336aqsik58x2prs19.png)
A new hashtag for the learners, and self-doubt
Tags: suggestions, suggestion, devdiscuss
Published: 2023-12-15 14:03:20

I had a thought for a while because sometimes we
misunderstand concepts and such.
which is adding a tag "Did I get this right ?"
which is similar to the discussion but a little different since the writer seeks feedback for his understanding of this concept eg:
"C is structural meaning it consists of structures, and everything you have to define it beforehand.
did I get this right ?" for example.
it`s an extra hashtag but also it could branch from hashtag #discussion by differentiating it from open discussion.
CLOUDSWOOD TECHNOLOGIES PVT LTD - Barcode Labels Supplier In Dubai
Published: 2023-12-15 14:01:30

A committed team of two launched CLOUDSWOOD TECHNOLOGIES PVT LTD in 2017. After a year of trading, the company moved into the production of barcode ribbons, labels, and holograms. Their reputation is based on the resources they provide, and they are dedicated to seeing others thrive. Their core principles include innovation, ongoing development, and providing excellent products and services with a focus on client satisfaction. With more than seven years of expertise, they are renowned for their customer-focused strategy, which guarantees reliable and excellent results with each delivery. CLOUDSWOOD TECHNOLOGIES PVT LTD, one of the top producers of custom labels in Dubai, United Arab Emirates, is committed to generating value for everyone by means of their steadfast dedication to quality. CLOUDSWOOD TECHNOLOGIES PVT LTD offers best [Barcode Labels Supplier In Dubai.](
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/sl934xugfe3pqsw5s89p.png)

)

Website - https://thecloudswood.net/uae/ 

Address- Cloudswood Technologies Pvt. Ltd.
Middle East FZE Warehouse No. 35, Block A Umm Al Quwain Free Trade Zone Umm Al Quwain, UAE

Contact Us - +97 1 567215143 / +97 1 503022550
Thank you Community Builder Leaders '23
Tags: communitybuilders, thankfulforest2024, firevalleyrocks
Published: 2023-12-15 14:00:00

## Gratitude Tree

Time to plant a seed
To grow a beautiful tree
A member of the community I came to be
Skills have grown | Content created | relationships ive cultivated
Excited for whats ahead, but First looking back on 2023
The leaders I've met | who've given their time | all without asking | for a single dime
Gratitude. The word of the year
And As I turn the clock | on the year completed | things I'm most excited for | are the relationships | in the community I now hold dear.

THANK YOU COMMUNITY LEADERSHIP!

![Tree](https://www.binaryheap.com/wp-content/uploads/2023/12/thankful_tree.png)

## Thank you!

This year has been one of the most personally rewarding in my professional career and that's had less to do with the technical pieces and so much more to do with the relationships of the humans I've met.  The AWS Community Builders Program is filled with quality humans who I am privileged to be able to connect with on a daily basis.

This type of community doesn't happen by chance.  And it doesn't become what it has become without quality leaders.  We have the best leaders and I'm grateful to have been a small part of this year.  And as we turn the page on '23, I'm incredibly excited for '24!

From the bottom of my heart.  THANK YOU!

-- Benjamen
Thriends (Threads Official) NFT Collection
Tags: nft, web3
Published: 2023-12-15 13:58:44

Thriends is first official Threads project. Project was originally created as Street Kids but as it gained significant amount of followers a decision was made to convert the project to Thriends and make it official Threads project. Project was created by Threads influencer NFTStreetKid.
Thriends was created out of 300 traits and consists of 3000 unique NFT'S which gives every holder a unique look. Thriends also has released TT meme token which can be earned by staking your NFT'S to collect rewards. TT meme token will be available for trading at the end of 2024. Total supply of the token 1.4b with 300m locked in for staking rewards.
![Thriends 01](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/onugpqgojxd8u9k3mci0.png)
![Thriends 02](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/n2r99yp3y38v5977opu0.png)
![Thriends 03](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5j1duosw62hg5ivg4qdf.png)
Blooming Key - Life Coaching
Published: 2023-12-15 13:56:31

Blooming Key’s holistic bioenergetics coaching combines fundamental coaching methods with various complementary techniques, enabling you to become the best version of yourself.
Using the foundation of the world-renowned CTI framework (Co-Active Coaching) to focus your growth and development in various aspects of your life, I also incorporate other proven methods, depending on your goals and objectives. Blooming Key offers best [Life Coaching.](
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/m07gr2uv5wp31095ptqe.png)

)

Website :https://www.bloomingkey.com/
Location: Abu Dhabi, UAE
Call us at: +971552929419
Mail ID: info@bloomingkey.com
Detect Infrastructure Drift with Brainboard
Tags: drift, infrastructureascode, cicd, devops
Published: 2023-12-15 13:56:00

Managing infrastructure drift in cloud environments is a critical aspect of maintaining the reliability and security of cloud architectures. 

Here's an overview of drift detection and remediation:

{% embed https://youtu.be/HyWj34aZazc?si=jwFKYwbSfv-XGnPN %}

## Understanding Infrastructure Drift:

- **Source of Truth:** Modern cloud infrastructure, managed by multiple people, necessitates a unique source of truth, such as Brainboard, Git, or local files, to track changes and troubleshoot errors effectively. Constant monitoring is needed to ensure the real infrastructure hasn't drifted from its source​​.
- **Definition of Drift:** Drift occurs when the actual state of the deployed infrastructure diverges from the expected state described in the code. It typically happens due to direct/manual changes made to the deployed infrastructure outside of IaC tools' control​​.
- **Types of Drift:** There are two main types of drift: between environments (differences in deployed infrastructure across environments like staging and production) and between the code and the infrastructure (differences between provisioned cloud infrastructure and its code representation)​​.

## Drift Detection:

- **Overview:** Brainboard provides options for detecting drift in cloud infrastructure, including manual and automated workflows​​.
- **Manual Workflow:** Create a workflow to check for drift manually by going to the CI/CD page, creating a new workflow or using a public template, adding a drift detection task, and running the pipeline​​.
- **Scheduled Automatic Detection:** Set up automatic drift detection by creating a new workflow, opening workflow settings, activating the cron schedule, and enabling notifications for drift detection failures​​.
- **Output and Best Practices:** When a drift is detected, the workflow will be marked as failed, and it's a good practice to use automatic scheduled detection for both critical and non-critical workloads​​​​.

## Remediation Strategies:

- **Override the Infrastructure:** Redeploy the code that describes the infrastructure, either automatically within the drift detection workflow or manually after inspecting the output of the drift detection. Automatic remediation should be used cautiously and typically requires team collaboration​​.
- **Bring Changes to the Code:** If the changes made to the provisioned infrastructure are legitimate (e.g., during a security incident), incorporate these changes into the code. This approach is useful when immediate action on the cloud provider's console is necessary​​.

---

In summary, [effectively managing drift](https://app.brainboard.co/) involves having a clear source of truth, regularly detecting drift through manual or automated workflows, and implementing appropriate remediation strategies. These practices help maintain the integrity of the cloud infrastructure, ensuring it remains aligned with the defined code and architectural standards.