teleren/devto huggingface dataset:
Did Kafka Just Get Easier?
Tags: kafka, webdev, backend, devops
Published: 2024-05-16 06:23:09

**credit goes: Mayank Ahuja [in/curiouslearner/]**

'Apache Kafka Without ZooKeeper - Using KRaft' (Give it a read.)👇


## 𝐒𝐨𝐦𝐞 𝐁𝐚𝐜𝐤𝐠𝐫𝐨𝐮𝐧𝐝 -

◾ Apache Kafka is a distributed streaming platform designed for high-throughput, fault-tolerant data pipelines.
◾ It enables real-time data processing, event-driven architectures and reliable messaging.
◾ Kafka's architecture originally relied on ZooKeeper, an external coordination service.


## 📌 𝐖𝐡𝐚𝐭 𝐰𝐚𝐬 𝐙𝐨𝐨𝐤𝐞𝐞𝐩𝐞𝐫'𝐬 𝐫𝐨𝐥𝐞?

◾ Cluster Metadata Management ✔
- Stored information about brokers, topics, partitions and their configurations.
- Maintained cluster membership and facilitated broker discovery.

◾ Controller Functionality ✔
- Elected a leader broker (Controller) responsible for managing cluster operations (e.g., partition reassignment, leader election).
- Relied heavily on ZooKeeper for metadata updates and coordination.


## 📌 𝐋𝐞𝐭'𝐬 𝐚𝐥𝐬𝐨 𝐭𝐚𝐥𝐤 𝐚𝐛𝐨𝐮𝐭 𝐬𝐨𝐦𝐞 𝐜𝐡𝐚𝐥𝐥𝐞𝐧𝐠𝐞𝐬.

◾ External Dependency
- Required separate deployment and management of ZooKeeper.
- Increased operational complexity and potential points of failure.

◾ Scalability Limitations
- ZooKeeper could become a bottleneck for large-scale clusters due to metadata management overhead.

◾ Operational Overhead
- Maintaining a ZooKeeper ensemble added administrative burdens.

𝐒𝐨 𝐟𝐢𝐧𝐚𝐥𝐥𝐲,

Apache Kafka Raft (KRaft), a consensus protocol introduced in KIP-500 to eliminate Kafka's reliance on ZooKeeper.

** KIP-500 => Kafka Improvement Proposal 500


## 📌 𝐇𝐨𝐰 𝐢𝐭 𝐰𝐨𝐫𝐤𝐬? (Kafka with KRaft)

◾ With KRaft, Kafka now manages its own metadata through a 'metadata quorum' of brokers.

◾ These brokers utilize the Raft consensus protocol to ensure data consistency and availability, removing the need for ZooKeeper.

◾ Cluster metadata is stored in a dedicated, internal Kafka topic called '__cluster_metadata'.

◾ This topic is replicated across the metadata quorum, ensuring that metadata changes are durable and available even if some brokers fail.

◾ The Kafka Controller, responsible for various cluster management tasks like partition reassignment and leader election, is elected as a leader among the metadata quorum brokers.

◾ Only the leader Controller can modify the metadata. This ensures that metadata changes are serialized and prevents conflicts.

◾ Whenever metadata changes, the leader Controller appends the changes to the internal '__cluster_metadata' topic.

◾ Other brokers in the quorum follow the leader's decisions and replicate metadata changes.

◾ If the current leader fails, a new leader is elected automatically.

## 𝐖𝐡𝐢𝐜𝐡 𝐦𝐞𝐚𝐧𝐬,

✔ Simplified architecture.
✔ Improved scalability.
✔ Reduced operational overhead.
✔ Enhanced stability and performance.

📌 Support for ZooKeeper was deprecated in Kafka 3.4, encouraging users to migrate to KRaft.

📌 ZooKeeper support is expected to be removed entirely in a future Kafka release.

⭐ Follow https://www.linkedin.com/in/curiouslearner/
Bond Cleaning Services Brisbane: Get Your Full Bond Back with Professional End-of-Lease Cleaning
Published: 2024-05-16 06:22:15


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/m41ydmht9trzjheogpas.jpg)
Bond cleaning, well known as end-of-lease cleaning, is a commercial cleaning service. This kind of service offered at **[Bond Cleaning Services Brisbane](https://hackmd.io/@bestbondcleaning/rJiBK0b70)** is done when the tenants move out of the property. According to the lease or agreement signed by the tenant, if the property is returned in the same condition, the landlord may return your tenant's security deposit amount (bind money). On the other hand, if the house is left dirty, you will lose the bond money and your landlord's trust. If you are staying somewhere near Brisbane, then you can hire the best bond cleaners Brisbane, Australia.
Read, Learn And Explore—Surah Al-Mulk
Tags: islam, dunya
Published: 2024-05-16 06:19:34

[Surah Al-Mulk](https://surahalmulk.net/) 1–30 is the most beloved and easy-to-memorize surah in the Quran. Surah Mulk is also known as the 67th surah in the Quran. The main meaning of this surah is “dominion,” and the word Mulk means "kingships.”. Surah Al Mulk is believed to have been revealed to the Prophet Muhammad ﷺ in Makkah during the early years of Islam.

[Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/czdow084nabywb3ujj9r.jpeg)
Ionic loader, without clicking event (loading.dismiss())
Tags: ionic
Published: 2024-05-16 06:16:50

> In html file,

```html
  <div *ngIf="!isLoading" class="edit-area">
    <div class="container">
      <div class="user">
            <h2>Show This Content</h2>
      </div>
    </div>
  </div>
```

---

> In ts file

```js
// data store
isLoading = false;

  constructor(
    private loadingCtrl: LoadingController,
  ) { }


  ngOnInit() {
    this.onInitForm();
    // Base Data
    this.getLoggedUserData();
    this.toggleLoading();
  }

  // loading
  async toggleLoading() {
    if (this.isLoading) {
      await this.showLoading();
    }
  }

  async showLoading() {
    const loading = await this.loadingCtrl.create({
      message: 'Loading.....',
      duration: 3000,
    });

    await loading.present();
    loading.dismiss();
    this.isLoading = false;
  }


/***
   * HTTP REQUEST HANDLE
   * getLoggedUserData()
   */
  private getLoggedUserData() {
    this.isLoading = true;
    if (this.isLoading) {
      this.showLoading();
    }
    this.subDataOne = this.userDataService.getLoggedInUserData().subscribe({
      next: (res) => {
        this.user = res.data;
        console.log('this.user', this.user)
        this.setFormValue();
        // this.isLoading = false;
      },
      error: (err) => {
        if (err) {
          console.log(err);
        }
      }
    })
  }


```
New Port Partners and Matellio Forge Strategic Alliance to Boost Client Success with Enhanced Technology Advisory
Tags: technology, news
Published: 2024-05-16 06:16:42

New Port Partners, a premier advisory firm specializing in tech-sector business performance improvements, and Matellio, a leading product development and digital transformation services provider today announced a strategic partnership to guide clients through complex business transformations.

"Joining forces with Matellio represents another step New Port Partners has taken to provide clients a comprehensive suite of business transformation solutions," said Dan Mondor, co-founder and managing director of New Port Partners. "We're thrilled to combine our strategic advisory experience with Matellio's comprehensive technology advisory and software development capabilities."

"The rapid rate of innovation in the Technology, Media and Telecom (TMT) sector creates both challenges and opportunities for our clients" said Amrit Singh, Chief Strategy Officer of Matellio. "We have developed hands-on experience building, customizing, and integrating powerful solutions leveraging 5G technology, Internet of Things (IoT) platforms, cloud and edge computing, and AI/ML models. While technical competency is critical for implementation success, job number one is sense-making: which business problem(s) should be prioritized, what are the root causes, and what is the optimal solution(s) within each client's unique context. We're thrilled to team with New Port Partners and jointly optimize clients' investments in core and advanced technologies, from strategic planning through solution deployment and benefits realization."

Through this strategic partnership, New Port Partners and Matellio will offer clients a seamless experience, guiding them from initial business strategy through the implementation of cutting-edge solutions to increase both revenue and profitability.

For more information on how New Port Partners and Matellio are driving business transformations, visit www.newportpartnersgroup.com and www.matellio.com.

**About New Port Partners**

New Port Partners advises public and privately held companies on performance improvement and company-wide business transformations. New Port Partners founders are former tech industry CXO executives of Fortune 500, NASDAQ listed, and private equity companies. Collectively they have created over $6Billion in incremental shareholder value. For more information visit www.newportpartnersgroup.com or email info@newportpartnersgroup.com.

**About Matellio**

Matellio works together with clients to navigate the intricate journey of product development and digital transformation, becoming an essential catalyst for their innovation, growth, and sustainability. Led by former industry operators, we focus on accelerating time-to-market for early-stage SaaS / PaaS companies and driving outsized ROI for mid-market companies seeking to optimize enterprise applications. For more information, and to learn how we've helped clients including HPE and Siemens, visit www.matellio.com.
wedding invite message for friends
Tags: ai, graphql, devops, webdev
Published: 2024-05-16 06:00:05


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9kc4i33iibk3j2733qi9.jpg)
"Amidst the whispers of love and the promises of forever, we **_[wedding invite message for friends](https://www.craftyartapp.com/k/best-wedding-invitation-messages-for-friends-and-family)_** you to witness the merging of our souls in matrimony. Join us as we declare our commitment to each other on [Date] at [Venue], surrounded by the love and blessings of our cherished friends and family. Your presence will add to the beauty of our celebration as we embark on this journey of love and partnership. Let's create memories together, filled with laughter, joy, and the magic of new beginnings. We eagerly await the honor of your company as we begin this chapter of our lives. Together, let's make this day a cherished memory to hold in our hearts forever."
How to Hire a Java Developer?
Tags: javadeveloper, java, hire
Published: 2024-05-16 05:58:46

Explore **[how to hire a Java developer](https://talentonlease.com/blogs/how-to-hire-java-developer/)** effectively with our comprehensive guide. Learn the essential tips for identifying skilled Java developers who align with your team’s culture and objectives. From defining required skills to crafting compelling job descriptions and conducting thorough technical interviews, our guide covers every step. 

Enhance your hiring process by exploring online platforms, evaluating both technical and soft skills, and ensuring a smooth onboarding process. Elevate your team’s productivity by bringing in top Java talent. Read our guide to master the recruitment of Java developers.
AWS AMPLIFY FULLSTACK CHALLENGE
Tags: devchallenge, awschallenge, amplify, fullstack
Published: 2024-05-16 05:55:28

*This is a submission for the [The AWS Amplify Fullstack TypeScript Challenge ](https://dev.to/aws/the-aws-amplify-fullstack-typescript-challenge-help-thread-529a)*

## What I Built
I have developed fullstack facerecognition attendance system using Streamlit and Insightface Model in Python
## Demo
Here is the video Link: https://drive.google.com/file/d/1HNI2UaZTEsl0SCiNls4c_zFcB--9aT1H/view?usp=drive_link

## Journey
I have developed fullstack Machine Learning based Face Recognition and attendance system where students needs to enroll their faces then model accurately predicts their names and marks attendance if they have been identified by the model.

**Connected Components and/or Feature Full**

I have developed Fronted using Streamlit and with using InsightFace  I have made recognitions and developed backend using python


![Face Recognition App](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7uomsqfc350irroid75k.jpg)

[please visit on live aws Link](https://3.26.209.21/)
Why PHP queries denies Quantum solace ?
Published: 2024-05-16 05:54:23

A successful 2023 animated movie by Paramount was Teenage Mutant Ninja Turtles: Mutant Mayhem. The movie was an animated reboot of the popular Teenage Mutant Ninja Turtles franchise, and it took its moniker more seriously (and less seriously) than ever before. The characters acted more like teenagers than in previous continuities, and the film was filled with both slang and humor popular with Generation Alpha and the TikTok crowd. It was definitely off-putting to some, and despite the movie's rave reviews, it was only a modest success at the box office. Where it did succeed, however, was the toy aisles, with Mutant Mayhem raking in a shell of a haul through its popular toyline.The Fast & Furious franchise has always been a bit ridiculous, but the drag racing element introduced in Tokyo Drift should have led to many more dead bodies. From Sean’s first drag race in an enclosed parking lot to driving at such a high speed that the cops did not even bother to chase them, the fact that there was not a fatality every two minutes in Tokyo Drift was a miracle. Almost every character in Tokyo Drift showed a complete disregard for their safety, and it was surprising so many were left alive by the time the credits rolled.

https://www.storytellersproject.com/talk/how-to-watch-furiosa-a-mad-max-saga-starring-chris-hemsworth-right-now-for-free/
https://www.storytellersproject.com/talk/official-hd-kingdom-of-the-planet-of-the-apes-2024-free-online/
FreelanceLogoDesign.com - Freelance logo design done in 24 hours!
Tags: logos, design, designers, freelancer
Published: 2024-05-16 05:42:40

Freelancelogodesign-com is a leading online platform that specializes in providing high-quality logo design services in less than 24 hours. With a team of talented and experienced graphic designers, the platform offers a seamless and efficient way to create unique and professional logos tailored to the specific needs and preferences of its clients. 

Just like the website name suggests, one of the standout features of Freelancelogodesign-com is its emphasis on the freelance model. The platform connects clients directly with a diverse pool of freelance designers, allowing for a more personalized and collaborative logo design process. 

Clients can browse profiles and portfolios of different designers, assessing their skills, styles, and past work to find the perfect match for their project. This approach ensures that clients have a wide range of design options and can work with designers who align with their vision.

[https://freelancelogodesign.com](https://freelancelogodesign.com)
Sustainability and Style with Stainless Steel Square Tubing
Tags: tubes
Published: 2024-05-16 05:40:23

Sustainability is a big word means taking care of our world and creating sure we use resources in a way that keeps them available for some long time. Style means looking fashionable and cool. And when it concerns using Stainless Steel Square Tubing, your may have each style and sustainability.

Advantages of Stainless Steel Square Tubing
Stainless Steel Square Tubing the most durable materials can use. It's not going to rust, corrode, and sometimes even break down with time. This implies you can use that it again and ss rod again, saving money and resources. It's also very strong, which makes it possible to use less concerning this to obtain the job done, reducing waste.

Innovation in Stainless Steel Square Tubing
Stainless Steel Square Tubing can be your great example of in materials. It's produced from per mix of strong metals and durable, but also lightweight. This makes it perfect for the a number of makes use of, from building construction to stainless steel rod furnishings making. It is also easy to work with, therefore you can customize it to fit your very own needs.

Safety of Stainless Steel Square Tubing
Stainless Steel Square Tubing is a very secure material use. It wont leak harmful chemicals toxins, and it's not going to catch fire easily. This leads to that it is an ideal selection for things like food processing and medical equipment. Additionally it is easy to clean and sanitize, required for keeping points trusted and healthy.





Using Stainless Steel Square Tubing
Stainless Steel Square Tubing could be utilized for a large variety of. It's widely found in construction to build things just like bridges and structures. It is also used at manufacturing to produce things such as stainless steel square tube equipment and machinery. And it is even utilized in art and create to generate unique and pieces being stylish.

How to Use Stainless Steel Square Tubing
Using Stainless Steel Square Tubing is uncomplicated and easy. This is cut by you in order to size using a saw or simply more cutting apparatus. An individual may also together weld it to be able to develop an even more involved structure. And it, you are going to use a machine to do this without affecting its durability or strength should you want to bend.





Quality and Service of Stainless Steel Square Tubing
Stainless Steel Square Tubing is renowned for its durability and quality. It is designed to last a long interval and it is designed become used again and again. And should your ever need assistance with assembling your project, there are loads of experts available to you who is able to provide guidance and assistance.

Applications of Stainless Steel Square Tubing
Stainless Steel Square Tubing can be utilized in a wide range concerning, from industrial and commercial to residential and decorative. It is commonly put in such things as furniture, handrails, and awnings. Additionally it is used in construction for building supports, fences, and gates. And it is much used in the things industry automotive frames and exhaust systems.
The Role of NAD+ Supplements in Cancer Prevention and Treatment
Tags: supplements
Published: 2024-05-16 05:38:39

The entire world  marvelous of Supplements

NAD+ supplements undoubtedly are a type or kind of health supplement  appeal  gaining its prospective to quit and treat cancer tumors. , we are going to have a significantly better go through the benefits, innovation, security, usage, and application of NAD+ supplements.

Features of NAD+ Supplements
NAD+ supplements have now been discovered to be useful in cancer tumors therapy and avoidance. It really works by strengthening the immune protection system, improving DNA fix, reducing irritation, and enhancing health  mobile. NAD+ supplements will assist you guard the human anatomy from ecological toxins and radicals and this can be free.

NAD+  with Trans-Resveratrol 

Innovation of NAD+ Supplements
NAD+ Supplement absolutely are a cutting-edge innovation in normal wellness. They've been made of a molecule  produced obviously within the body  human making this secure and efficient. NAD+ supplements are constantly being examined for their prospective in condition avoidance and therapy, which makes it a subject  hot scientists and wellness enthusiasts alike.

Patented Nicotinamide Riboside NAD+ Supplement

Security of NAD+ Supplements
NAD+ supplements have been discovered in order get results and safe. They have been examined extensively, with no  part  undesirable have now been reported. Nevertheless, you need bear in mind that NAD+ supplements shouldn't be utilized a substitute for almost any recommended medications

Use of NAD+ Supplements
​NAD+ supplements may be used in lot of kinds. They could be taken orally or administered intravenously. Oral supplements can be found in capsules, pills, and powders. Intravenous administration completed by way of a medical practioner and often suitable for people who have serious signs.

Utilizing NAD+ Supplements
When working with NAD+ supplements, it is vital to stick to the dosage guidelines within the label. Having a dosage significantly more than precisely what  suggested could be harmful. NAD+ supplements may be taken with or without meals, based the type of dietary supplement.

Service and Quality of NAD+ Supplements
When purchasing NAD+ supplements, you ought to buy from a well established and brand name  trusted. Try look for certifications and assessment  third-party quality  ensure security. A brandname  trusted provide exemplary customer support, responding any concerns you have and supplying help throughout your usage of the health supplement.

Application of NAD+ Supplements
NAD+ supplements may be used being a preventative measure against cancer tumors, or be a supportive treatment for those cancer tumors therapy  undergoing. They may be able be utilized  enhance general mobile wellness, boost power, and enhance quality  psychological.
Handling Nullable Relationships in Laravel Models: Best Practices vs. Manual Checks
Tags: php, laravel, webdev, beginners
Published: 2024-05-16 05:30:00

## Handling Nullable Relationships in Laravel Models: Best Practices vs. Manual Checks

When dealing with relationships in Laravel models, such as the `author` relationship in a `Post` model, it's essential to consider the best practices for handling nullable relationships. Let's explore the best and bad approaches to handle such scenarios:

```php
class Post extends Model
{
    public function author(): BelongsTo
    {
        // Defines the relationship between Post and User models, where each post belongs to an author.
        return $this->belongsTo(User::class)
                    // If the author_id in the Post is null, the author relationship will not return null but a new User model.
                    // The new User model's name is set to 'Guest Author' by default.
                    ->withDefault([
                        'name' => 'Guest Author'
                    ]);
    }
}
```

### Explanation:
- Utilizes Laravel's `withDefault` method to specify default values for attributes of related models.
- Ensures that if the `author_id` in the `Post` model is null, it returns a new `User` model with the name attribute set to 'Guest Author'.
- Eliminates the need for explicit checks for null values when accessing the author's name, providing a cleaner and more concise way to handle such scenarios.

```php
$authorName = $post->author ? $post->author->name : 'Guest Author';
```

### Explanation:
- Requires manual null checks (`$post->author ? ... : ...`) to handle nullable relationships.
- Leads to repetitive and verbose code snippets every time the author's name is needed.
- Increases the chances of forgetting null checks, potentially causing runtime errors if accessed without validation.

In conclusion, leveraging Laravel's `withDefault` method offers a cleaner and more efficient solution for handling nullable relationships, ensuring a smoother development experience and reducing the likelihood of errors compared to manual null checks.
New to DEV.to - About me
Tags: webdev, ffmpeg, webassembly, aws
Published: 2024-05-16 05:28:01

New to DEV.to but not new to Software development.
20+ years into software development 
Here is my journey -

- 90s dot com - noob web developer
- Built Web products for large enterprises
- Early member of a digital agency riding the Facebook/Orkut social media rush of mid 2000s (Successful exit)
- Crash landed my hardware IOT startup and learnt hardware is hard (https://www.indiegogo.com/projects/neo-the-first-social-storytelling-toy#/)
- Currently building a webapp to help businesses create videos with ease
Trying to find the first early users. Building and  learning something new everyday with javascript/wasm/ffmpeg/aws/C and loving it!

What brings me here ?
To share my experiences/learning and code snippets when I build and learn everyday
Learning and connecting with other devs at dev.to

What interests me?
Im glad my favourite 'C language' is back and playing a major role in client side development via WASMs.
With WASM the power of computing has improved on the browsers. I am keenly interested in leveraging WASM and other client side computing technologies to improve the product performance, user experience and at the same time optimise costs for the product builder.

I have an eye on generative AI integrations 
1. As a developer to improve productivity 
2. As a builder to make a product smarter and provide more value to the user

Happy to help and discuss any questions on Javascript, AWS(Lambda/SQS/SES/S3/CloudFront), FFMPEG, Emscripten, WebCodecs, javascript, browser based computing using WASM/Workers, AI integrations

Header Image Credits - https://www.agilenative.com/2017/01/hello-world/