Shock And Awe: Bitcoin Lightning Network Capacity Reaches New ATH | Bitcoinist.com – Bitcoinist

The adoption of the bitcoin lightning network has been on the rise for a while now. This was especially pronounced during the multiple bull rallies of 2021. It triggered an accelerated rate of adoption. Thus leading to network congestion due to all of the new users moving in. Naturally, transaction fees had risen while confirmation times had slowed. The lightning network preferred a solution to this by not being only faster but cheaper at the same time.

The bitcoin lightning network capacity had been tethering around 1,000 BTC by this time last year. Mostly because users were still comfortable transacting on the bitcoin network and confirmation times were reasonable. However, with massive adoption came the need for more capacity. The move to the bitcoin lightning network was accelerated by significant events in the space such as El Salvador making the cryptocurrency a legal tender.

Related Reading |JP Morgan CEO Says More Pain Ahead For Bitcoin, Ethereum, Cardano Investors

Since then, the growth of the bitcoin lightning network has been apparent. By December 2021, the lightning network capacity had more than doubled to be sitting above 3,000 BTC. Being a layer 2 solution, it was speculated that its capacity would hit a peak and start declining but that would not be the case.

By April 2022, the lightning network capacity had grown to more than 3,600 BTC. Since it allows users to carry out micro-transactions with very little transaction fees, more users are opting to use the lightning network for their transactions, hence the 9% growth that has been recorded in less than two months.

As of June 5th, the bitcoin lightning network capacity was sitting at 3,950. This growth rate indicates that more bitcoin users and investors are choosing to use the layer 2 solutions to carry out transactions off-chain.

The bitcoin lightning network has been around for a while now and like a lot of layer 2 roll-up solutions, has taken some time to catch on. However, what has been observed with solutions like these has been their accelerated growth rate once they have been tried and tested by users in the space.

This is actually evident in the growth trend of the lightning network. Even after bottoming out at the start of the year, it has been able to pick back up, growing 6% in the month of May alone. This is the fastest growth rate recorded since October if 2021. It also translates to a 100% yearly growth rate in lightning network adoption.

Related Reading |The Bottom May Not Be In, But How Low Can Bitcoin Go?

Although the bear market has been affecting the adoption of bitcoin, those already in the space continue to look towards other ways of carrying out cheap transactions. If the growth over the past month is anything to go by, then the lightning network capacity could be gearing for another run like the one recorded in the summer of 2021.

Follow Best Owie on Twitter for market insights, updates, and the occasional funny tweet

Go here to read the rest:
Shock And Awe: Bitcoin Lightning Network Capacity Reaches New ATH | Bitcoinist.com - Bitcoinist

Does Bitcoin Need Regulation? – Bitcoin Magazine

Watch This Episode On YouTube

Listen To The Episode Here:

In this weeks episode of Bitcoin Bottom Line, hosts C.J. Wilson and Josh Oszelwicz are joined by guest Yankun Guo, a corporate and financial regulations attorney at Ice Miller, to discuss cryptocurrency regulations and how they intersect with law.

Guos interests lie in bridging the gap between technology and law. She explains her tasks as working with companies to help navigate new emerging technologies. Guo highlights the complex and evolutionary nature of the relationship between cryptocurrency and regulation and shared, One thing that is exciting about crypto is that, depending on what you do with it, you fall under a different jurisdiction, a different law or regulation.

As they dive deeper into this relationship, Wilson explains, Crypto is 24/7, Bitcoin trades 24/7, a lot of people think the law is sort of like 9:00 to 5:00. He goes on to ask, Is it going too fast for laws to catch up? Or are there certain instances where the laws have been ready, or really old laws are still applying even though its a brand new marketplace?

To this, Guo explains that in many cases older laws are being applied, but she pushes for evolution to, educate legislators and policy makers to make sure that the laws do catch up and hopefully foster innovation so that it doesnt impede progress.

Wilson then discusses the ways in which regulations can be variable from state to state. Guo explains that it is difficult to navigate because, No company, especially if you are a technology company, operates purely in one state you have federal regulations, as well as state-by-state regulations you have to follow and case law on top of that. When discussing regulations in the United States as a whole, Wilson refers to it as a double-edged sword, balancing safety and assurance, with comparably higher regulations. Guo explains that an increase in regulation has also been met with an adoption of cryptocurrency and Bitcoin on a wider scale. In the end, Wilson asks Guo What would better laws and rules look like? to which she outlines a two-step process to reach clarity and understanding, starting with What are we trying to achieve? Followed by What are the steps to get there?

Listen to the full episode for more!

Disclaimer: The opinions presented herein are solely of the individual and not necessarily representative of Valkyrie Investments Inc. and their affiliates. There is no guarantee that any specific outcome will be achieved. Investments may be speculative, illiquid and there is a risk of total loss of your investment. Past performance is not indicative of future results.

The rest is here:
Does Bitcoin Need Regulation? - Bitcoin Magazine

GitHub drops Atom bomb: Open-source text editor mothballed by end of year – The Register

On December 15, Microsoft's GitHub plans to turn out the lights on Atom, its open-source text editor that has inspired and influenced widely used commercial apps, such as Microsoft Visual Studio Code, Slack, and GitHub Desktop.

The social code biz said it's doing so to focus on cloud-based software.

"While that goal of growing the software creator community remains, weve decided to retire Atom in order to further our commitment to bringing fast and reliable software development to the cloud via Microsoft Visual Studio Code and GitHub Codespaces," GitHub explained on Wednesday.

GitHub Codespaces is a cloud-hosted development environment that integrates Visual Studio Code.

In June 2018, when Microsoft acquired Github, Nat Friedman, CEO at the time, reassured the GitHub community that Atom was alive and well.

"Atom is a fantastic editor with a healthy community, adoring fans, excellent design, and a promising foray into real-time collaboration," said Friedman in a Reddit ask-me-anything discussion. "At Microsoft, we already use every editor from Atom to VS Code to Sublime to Vim, and we want developers to use any editor they prefer with GitHub.

"So we will continue to develop and support both Atom and VS Code going forward."

After four years of going forward, Atom has come to a standstill. According to GitHub, the project hasn't had significant feature development for several years, apart from maintenance and security updates. During this period community involvement has declined and the business of locally installed software now looks less attractive than the potential recurring revenue, vendor lock-in, and information gathering enabled by cloud-based apps.

Atom dates back to 2011 at GitHub and by 2015 when the Atom shell a separate component for integrating with Chromium, Node.js, and native APIs was renamed Electron (a cross-platform app framework based on web tech), Microsoft began working with GitHub on Atom and Electron and what would become Visual Studio Code.

That relationship has now followed a paradigm Microsoft made famous: embrace, extend, extinguish, though the sunsetting of Atom looks more like pushing dead weight out of a cloud-bound balloon rather than a strategically advantageous hit.

"We want to invest in our core bets over the coming years, and that means focusing on enhancing the developer experience in the cloud," a GitHub spokesperson told The Register in an email. "There are also many strong alternatives to Atom that meet various needs, and VS Code has gained an enormous amount of market share such that were confident in this change.

"This should have little impact on GitHubs developer ecosystem. GitHubs APIs continue to be supported and enable developers to integrate with GitHub across thousands of other products. We also maintain our own suite of apps, including GitHub Desktop, GitHub Mobile, and GitHub CLI."

Atom's influence should continue to be felt via the Electron framework. Electron.js still serves as the basis for Discord, Skype, Slack, Trello, and Visual Studio Code, among other apps. But technology changes. Microsoft previously said it intends to move away from Electron in Teams. And other cross platform frameworks like Flutter, Tauri, or Microsoft's recently announced .NET Multi-platform App UI (.NET MAUI) may gain traction.

Still, Atom looks likely linger beyond its December 15, 2022 decommission date. Though GitHub intends to archive the Atom repository, the code is open source and remains available to anyone who wants to champion the project.

The rest is here:
GitHub drops Atom bomb: Open-source text editor mothballed by end of year - The Register

The Top 11 IDEs for Embedded Applications – Electronic Design

What youll learn:

An integrated development environment (IDE) is a software application that provides a set of tools for software development and coding programming languages, all in a single graphical user interface (GUI). IDEs typically pack a source-code editor that assists in programming with features such as syntax highlighting (complete with visual cues), language-specific auto-completion (automate simple, repeatable tasks), and a debugger for testing code and routing-out bugs.

In essence, IDEs enable programmers to maximize productivity without the need for multiple utilities that have to be configured and implemented for each application. Because utilities are housed under a single GUI, developers can execute actions without switching between applications. This is especially helpful for embedded development applications within IoT ecosystems that dont require reconfiguration to suit multiple devices or projects.

Other standard IDE features are designed to help developers manage workflows and efficient problem-solving. IDEs parse code as its written so that bugs can be identified in real-time. Some IDEs may even include class and object browsers and hierarchy diagrams for specific languages.

While some software engineers and coders prefer to create their own IDEs, integrating only the tools needed for specific projects, others rely on preconfigured applications that can be applied to a wide variety of platforms.

This gallery highlights some of the widely used IDEs that provide a basic set of tools and additional features for streamlining the coding process. Many of these IDEs are open source and freely available; others have paid versions or paid enhancements.

Originally posted here:
The Top 11 IDEs for Embedded Applications - Electronic Design

Apple’s big annual conference kicks off next week: Here’s what to expect – CNBC

Apple CEO Tim Cook will present the latest versions of Apple's software for iPhones, iPads, Mac, Watch, and TV on Monday to kick off WWDC, Apple's annual developer conference.

The new "bits," as attendees often call the updates, are the biggest Apple software announcement of the year and set the public strategy for Apple's platform over the next 12 months. For example, iOS 16, as Apple is expected to call the new software for iPhones and iPads, could include improved notifications, a redesigned lock screen, and updates to the Messages and Health apps, according to a report from Bloomberg News.

But Apple's long-reported mixed-reality headset is unlikely to make a debut next week.

WWDC, which stands for Worldwide Developers Conference, and is nicknamed "Dub Dub," is strategically important for Apple even if the company doesn't announce any new hardware.

Apple's financial performance depends on the support from third-party software developers like those that attend WWDC. Without a robust selection of updated, quality applications, the value of Apple's platforms for consumers and users would likely decline, which would eventually hurt sales. Apple also generates as much as $20 billion per year from software sales on its App Store.

Software for Apple platforms, like iOS apps, usually use different tools or programming frameworks than other big platforms such as Microsoft's Windows, Google's Android, or the web. Apple gets programmers excited about these technologies through a hype-filled keynote to kick off the conference, a more technically oriented presentation called "Platforms State of the Union" later that day, and then a week of class-like sessions and one-on-one meetings where developers can get feedback and guidance from Apple engineers.

The biggest difference this year for WWDC is that it will include an in-person component after two years of being entirely virtual. The change is subtle the keynote presentation with new product announcements will still be pre-recorded, and developers around the world can still virtually attend the conference's sessions.

But this year, Apple has invited a few hundred software developers, members of the press, and students to its headquarters in Cupertino, California, to watch the video presentation, get tours of the campus, and speak in-person with some of the people who built the software. It's nothing like the 6,000 attendees that travelled to San Jose for WWDC before the pandemic, but it's another sign things are returning to normal after two years of virtual product announcements. Apple employees were required to begin to return to the office this spring after nearly two years of working mainly from home during the Covid pandemic.

Holding WWDC in-person this month sets the stage for a fall launch where Apple will show new phones, and maybe even a high-end mixed-reality headset, in front of a live crowd to get immediate hands-on feedback from the press and partners. Just like the old days.

Apple sometimes reveals new hardware at WWDC, but the products are usually pricey, high-powered and aimed at programmers usually Macs, which are required to build apps for the iPhone.

The last time Apple announced hardware products at WWDC was in 2019 when it released the $6,000 Mac Pro and a $5,000 monitor. Before that, it announced updates to Mac desktops and laptops in 2017.

Apple could reveal the successor to the M1 processor at WWDC. It teased at a product release event earlier that a high-end model called the Mac Pro with an Apple-designed chip was forthcoming. The "M2," as it could be called, would be the next-generation Mac processor and could come in a redesigned MacBook Air, according to Bloomberg.

At the very least, discussing the advances in Apple's processors would be a good fit for the developer-centric conference. Apple originally announced its switch to its own processors at WWDC in 2020.

Apple's next big product category, augmented or mixed reality hardware, is unlikely to make an appearance.

Apple might talk about new apps and software that lay the groundwork for a mixed reality headset or pair of augmented reality glasses, and it often announces updates to its augmented reality development software, ARKit, at WWDC. (Augmented reality displays computer-generated images on top of transparent lenses that let users view the real world, while mixed reality is a fully immersive experience like virtual reality, but with external cameras showing images of the real world outside.)

But new product categories usually get their own launch events rather than being shoehorned into WWDC, and the headset reportedly hasn't entered into mass production yet.

Major software updates are a better bet. In previous years, Apple has announced the new version of its iOS software at WWDC in June, released a public beta version for early adopters and testers later in the month, and then released the final version of the software alongside new iPhones in September.

While the iPhone has the most users and the most important App Store, the updates for Apple's other software platforms, including iPad, Watch, and TV, often get just as much attention at WWDC.

iPads in particular could receive some big changes. iPadOS 16 could reportedly include the ability to resize windows in a move that would make the device more attractive for power-users who like to multitask. Currently users can run two apps side-by-side, but the ability to customize floating windows would make it more like MacOS.

Apple's TV set-top box, Apple TV, could get an update that would make it more useful as the heart of a smart home, according to Bloomberg. The Apple Watch got new hardware last year with a physically larger screen, and its software is due for an update that includes new watch faces to take advantage of the larger screen.

One Apple product that will get a lot of attention next week is Swift, the company's open-source programming language that was introduced in 2014. Invites sent to developers and media included a graphic with a large Swift logo, and one of the taglines for the conference is "Swiftly Approaching."

View post:
Apple's big annual conference kicks off next week: Here's what to expect - CNBC

Union.ai releases UnionML for seamless creation of web-native machine learning applications – PR Newswire

"UnionML significantly simplifies creating and deploying machine learning applications."

UnionML aims to unify the ever-evolving ecosystem of machine learning and data tools into a single interface for expressing microservices as Python functions. Data scientists can create UnionML applications by defining a few core methods that are automatically bundled into ML microservices, starting with model training and offline/online prediction.

"Creating machine learning applications should be easy, frictionless and simple, but today it really isn't.," said Union.ai CEO Ketan Umare. "The cost and complexity of choosing tools, deciding how to combine them into a coherent ML stack, and maintaining them in production requires a whole team of people who often leverage different programming languages and follow disparate practices. UnionML significantly simplifies creating and deploying machine learning applications."

UnionML apps comprise two objects: Dataset and Model. Together, they expose function decorator entry points that serve as building blocks for a machine learning application. By focusing on the core building blocks instead of the way they fit together, data scientists can reduce their cognitive load for iterating on models and deploying them to production. UnionML uses Flyte to execute training and prediction workflows locally or on production-grade Kubernetes clusters, relieving MLOps engineers of the overhead of provisioning compute resources for their stakeholders. Models and ML applications can be served via FastAPI or AWS Lambda. More options will be available in the future.

More information is available about UnionML: https://www.union.ai.

About Union.aiUnion.ai helps organizations deliver reliable, reproducible and cost-effective machine learning and data orchestration built around open-source Flyte. Flyte is a one of a kind workflow automation platform that simplifies the journey of data scientists and machine learning engineers from ideation to production. Some of the top companies, including Lyft, Spotify, GoJek and more, rely on Flyte to power their Data & ML products. Based in Bellevue, Wash., Union.ai was started by founding engineers of Flyte and is the leading contributor to Flyte.

SOURCE Union.ai

Go here to read the rest:
Union.ai releases UnionML for seamless creation of web-native machine learning applications - PR Newswire

Major Tech Companies Announce In-Demand Roles For 2022 – CGMagazine

Major tech companies are announcing in-demand roles for 2022.

According to recent data, the information technology industry had over $15 billion in funding in the last fiscal quarter of 2021. With such high investments, many major tech giants such as Apple, Google, and Microsoft are hiring new employees to further their innovations. Thus, computer science majors and tech enthusiasts need to know the top positions available in the workforce.

Of course, there are jobs in technology for parents, recent graduates, and former software developers. This way, they can secure an in-demand position and start expanding their skill sets. Read on to learn about major tech companies announcing in-demand roles for 2022.

First, many major tech companies are hiring mobile app developers to join their team. Typically, these professionals develop software for iOS or Android mobile devices. For example, they may develop custom gaming applications, ecommerce platforms, or financial banking apps. In addition, many businesses need mobile developers to build and maintain their applications as well.

Of course, app developers need extensive knowledge of programming languages like Swift, Java, Python, as well as Ruby on Rails. Additionally, they should familiarize themselves with third-party libraries and application programming interfaces (APIs). This way, they have the proper tools and knowledge to write high quality code. Absolutely, tech companies are hiring mobile app developers for the high business demand.

Next, many major tech companies are hiring cybersecurity engineers. These professionals often identify threats and vulnerabilities in software systems. For example, many cybersecurity engineers must learn to patch the log4j vulnerability with powerful development tools and programming technologies. Notably, this vulnerability allows malicious attaches to execute code remotely on any targeted computer.

Since log4j is an open source logging library for Java, its widely used by businesses and websites around the globe. Fortunately, cybersecurity teams can use JFrogs Log4j and Log4Shell resource centre to access scanning tools and remediation strategies. In short, many enterprises are hiring cybersecurity engineers as they look to secure their systems.

In addition, a cloud architect is another one of the most in-demand tech positions for hire. This IT professional is responsible for overseeing a companys cloud computing strategy. Typically, this includes cloud adoption plans, application design, and management. Additionally, cloud architects usually handle cloud monitoring as well.

Many companies are seeking cloud architects as they look to solve their business problems. To get hired as a cloud architect, professionals should gain experience with programming languages like Python, Ruby, and Elixir. Many managers also look for employees with excellent leadership skills. In short, a cloud architect is one of the most in-demand positions for hire this year.

Moreover, many major tech companies are also hiring automation engineers. Many companies are seeking engineers who can alter workflows to reduce human error. For example, many businesses in the energy sector need automation engineers to monitor their systems and maintain compliance with international standards. Manufacturing plants, car factories, and food processing facilities are seeking these professionals as well.

Of course, automation professionals are key in the robotics industry to create design specifications and other supporting documents. With such a high need across different sectors, there are currently over 6,000 positions available on the job market. Undoubtedly, automation engineers are one of the top available positions in tech.

Furthermore, many tech enterprises are hiring artificial intelligence engineers to develop, manage, and oversee organization AI initiatives. To get hired in this role, professionals need a deep knowledge of mathematics and statistics. In addition, they should have strong programming skills in Pythong, R, and Torch languages. Of course, they should also know how to use some top open-source AI and machine learning libraries.

This way, they can create new innovations in their software. For example, many AI engineers create entertainment software features to provide custom-tailor suggestions. They can also build chatbots and virtual assistants to interact with clients. Certainly, AI engineers are one of the top open job roles in tech companies.

View original post here:
Major Tech Companies Announce In-Demand Roles For 2022 - CGMagazine

EMQ Announces Official Sponsorship of the Erlang Ecosystem Foundation (EEF) – PR Newswire APAC – PR Newswire Asia

STOCKHOLM, June 9, 2022 /PRNewswire/ -- EMQ, the world's leading provider of open-source IoT data infrastructure, announced that it has officially become a Founding Sponsor of the Erlang Ecosystem Foundation (EEF). The sponsorship of EEF indicates an ongoing commitment from EMQ to support open-source BEAM languages that are scalable, resilient, and future-proof.

The Erlang Ecosystem Foundation is a non-profit organization for driving the further development and adoption of Erlang, Elixir, LFE, and other technologies based on the BEAM virtual machine.

Backed by companies like Erlang Solutions, EMQ, Cisco, and others, the foundation aims to grow and support a diverse community around the Erlang Ecosystem.

Erlang is a functional programming language originally developed at the Ericsson Computer Science Laboratory in 1986. Initially, it was designed as a switching language for solving the problems of the telecom world, but was released as open-source software in 1998.

Since being released to the public, Erlang has been spreading beyond Telecom and is widely used for many other verticals like Automotive, FinTech, IoT, e-commerce, Healthcare, and Blockchain.

To date, more and more organizations use Erlang as their backend programming language for high-profile IoT projects. One of the main reasons for using Erlang is its ability to build massively concurrent, scalable, and fault-tolerant distributed systems with requirements of high availability.

EMQ has always been a strong supporter of the Erlang Ecosystem and has built its flagship product EMQX the world's most scalable distributed MQTT-based IoT messaging platform by incorporating Erlang within its tech stack.

As the number of connected IoT devices continues to boom, so do all the issues that come up around IoT scalability and concurrency. According to the latest State of IoTSpring 2022 report by IoT Analytics, the number of connected IoT devices is expected to reach 14.4 billion by the end of 2022. To accommodate the massive amount of IoT devices flooding the markets, high-performance messaging technology needs to be rolled out for high-throughput and error-free scalability.

Due to Erlang's parallelism and distributed nature, EMQX can support the scalability requirements of fast-growing IoT applications. As demonstrated by a recent scalability and reliability test, EMQX 5.0 can easily handle 100 million concurrent MQTT connections in one single cluster while maintaining low latency and high fault tolerance.

Today, over 10,000 international organizations, have successfully adopted EMQX as their core IoT data infrastructure solutions in a variety of industries such as oil & gas, automotive, logistics, renewable energy power generation, and manufacturing.

As a Founding Sponsor of EEF, EMQ is dedicated to contributing libraries, tools, documentation, and other critical technologies of IoT data infrastructure that are used regularly by companies relying on the stability and versatility of the ecosystem.

Meanwhile, EMQ will work closely with EEF to build awareness of the Erlang Ecosystem, foster growth in the open-source community, and promote innovative software development projects.

"Weare proud to work together with EEF in its mission to foster a strong, healthy, Erlang developer community. Erlang is the core of our always-connected IoT data infrastructure platform serving millions of customers around the world. Thanks to Erlang's features, EMQ can create high performance, concurrency, fault-tolerant systems, and scalability across cloud, hybrid, and edge computing deployments in a cost-effective manner," said Feng Lee, CEO and Founder of EMQ, "We're passionate about Erlang and will continue making contributions to Erlang frameworks and toolsets. "

To learn more about EMQ's work with Erlang technologies, please visit http://www.emqx.com or follow @EMQTech on Twitter

About EMQ

EMQ is an innovative open-source software provider with strong roots in IoT data infrastructure, delivering the world's leading cloud-native MQTT messaging, streaming database, and edge computing solutions.

Since 2017 EMQ has been developing a high-performance and massively scalable distributed MQTT messaging server EMQX to accelerate the connectivity and integration of a wide spectrum of IoT applications and data across multiple platforms.

So far, EMQX has been adopted by more than 10,000 enterprise users from over 50 countries, connecting more than 100 million IoT devices worldwide.

EMQ's robust and flexible edge-to-cloud IoT data solutions encompass a suite of technologies designed for IoT applications: reliability, security, availability, scalability, latency & throughput. This enables successful enterprise-grade IoT deployments with ease and scale.

As a global organization, EMQ located its R&D center in Stockholm, Sweden, and has 10+ offices throughout the Americas, Europe, and the Asia-Pacific region.

Source: EMQ Technologies Co., Ltd.

View post:
EMQ Announces Official Sponsorship of the Erlang Ecosystem Foundation (EEF) - PR Newswire APAC - PR Newswire Asia

Introduction to Apache Beam Using Java – InfoQ.com

Key Takeaways

In this article, we are going to introduce Apache Beam, a powerful batch and streaming processing open source project, used by big companies like eBay to integrate its streaming pipelines and by Mozilla to move data safely between its systems.

Apache Beam is a programming model for processing data, supporting batch and streaming.

Using the provided SDKs for Java, Python and Go, you can develop pipelines and then choose a backend that will run the pipeline.

Beam Model (Frances Perry & Tyler Akidau)

The key concepts in the Beam programming model are:

A basic pipeline operation consists of 3 steps: reading, processing and writing the transformation result. Each one of those steps is defined programmatically using one of the Apache Beam SDKs.

In this section, we will create pipelines using the Java SDK. You can choose between creating a local application (using Gradle or Maven) or you can use the Online Playground. The examples will use the local runner as it will be easier to verify the result using JUnit Assertions.

In this first example, the pipeline will receive an array of numbers and will map each element multiplied by 2.

The first step is creating the pipeline instance that will receive the input array and run the transform function. As we're using JUnit to run Apache Beam, we can easily create a TestPipeline as a test class attribute. If you prefer running on your main application instead, you'll need to set the pipeline configuration options,

Now we can create the PCollection that will be used as input to the pipeline. It'll be an array instantiated directly from memory but it could be read from anywhere supported by Apache Beam:

Then we apply our transform function that will multiply each dataset element by two:

To verify the results we can write an assertion:

Note the results are not supposed to be sorted as the input, because Apache Beam processes each item independently and in parallel.

The test at this point is done, and we run the pipeline by calling:

The reduce operation is the combination of multiple input elements that results in a smaller collection, usually containing a single element.

MapReduce (Frances Perry & Tyler Akidau)

Now let's extend the example above to sum up all the items multiplied by two, resulting in a MapReduce transform.

Each PCollection transform results in a new PCollection instance, which means we can chain transformations using the apply method. In this case, the Sum operation will be used after multiplying each input by 2:

FlatMap is an operation that first applies a map on each input element that usually returns a new collection, resulting in a collection of collections. A flat operation is then applied to merge all the nested collections, resulting in a single one.

The next example will be transforming arrays of strings into a unique array containing each word.

First, we declare our list of words that will be used as the pipeline input:

Then we create the input PCollection using the list above:

Now we apply the flatmap transformation, which will split the words in each nested array and merge the results in a single list:

A common job in data processing is aggregating or counting by a specific key. We'll demonstrate it by counting the number of occurrences of each word from the previous example.

After having the flat array of string, we can chain another PTransform:

One of the principles of Apache Beam is reading data from anywhere, so let's see in practice how to use a text file as a datasource.

The following example will read the content of a "words.txt" with the content "An advanced unified programming model". Then the transform function will return a PCollection containing each word from the text.

As seen in the previous example for the input, Apache Beam has multiple built-in output connectors. In the following example, we will count the number of each word present in the text file "words.txt" that contains only a single sentence ("An advanced unified programming model") and the output will be persisted in a text file format.

Even the file writing is optimized for parallelism by default, which means Beam will determine the best number of shards (files) to persist the result. The files will be located on folder src/main/resources and will have the prefix "wordcount", the shard number and the total number of shards as defined in the last output transformation.

When running it on my laptop, four shards were generated:

First shard (file name: wordscount-00001-of-00003):

Second shard (file name: wordscount-00002-of-00003):

Third shard (file name: wordscount-00003-of-00003):

The last shard was created but in the end was empty, because all words were already processed.

We can take advantage of Beam extensibility by writing a custom transform function. A custom transformer will improve code maintainability as will remove duplication.

Basically we'd need to create a subclass of PTransform, stating the type of the input and output as Java Generics. Then we override the expand method and inside its content we place the duplicated logic, that receives a single string and returns a PCollection containing each word.

The test scenario refactored to use WordsFileParser now become:

The result is a clearer and more modular pipeline.

Windowing in Apache Beam (Frances Perry & Tyler Akidau)

A common problem in streaming processing is grouping the incoming data by a certain time interval, specially when handling large amounts of data. In this case, the analysis of the aggregated data per hour or per day is more relevant than analyzing each element of the dataset.

In the following example, let's suppose we're working in a fintech and we are receiving transactions events containing the amount and the instant the transaction happened and we want to retrieve the total amount transacted per day.

Beam provides a way to decorate each PCollection element with a timestamp. We can use this to create a PCollection representing 5 money transactions:

Next, we'll apply two transform functions:

In the first window (2022-02-01) it's expected the total amount of 30 (10+20), while in the second window (2022-02-05) we should see 120 (30+40+50) in the total amount.

Each IntervalWindow instance needs to match the exact beginning and end timestamps of the chosen duration, so the chosen time has to be "00:00:00".

Apache Beam is a powerful battle-tested data framework, allowing both batching and streaming processing. We have used the Java SDK to build map, reduce, group, windowing and other operations.

Apache Beam can be well suited for developers who works with embarrassingly parallel tasks to simplify the mechanics of large-scale data processing.

Its connectors, SDKs and support for various runners bring flexibility and by choosing a cloud native runner like Google Cloud Dataflow, you get automated management of computational resources.

Go here to see the original:
Introduction to Apache Beam Using Java - InfoQ.com

‘It’s going unreported’: Program on Six Nations, Ont., out to open eyes on what human trafficking is – CBC.ca

WARNING:This story contains detailsreaders might find distressing

Robin Antone went through some hard years when he was younger.

Originally from Oneida Nation of the Thames, he grew up in nearby London, Ont., moving through various foster families and group homes. The instability of his youth led todrugs and drinking. He saidthe desperation caused by addiction made him vulnerable to becoming a victim of human trafficking.

Only he didn't realize that's what it was at the time.

"There were these guys that I used to come in contact with ... and they would ask me if I wanted to make some money," Antone, 49, told CBC Hamilton. "One day, I went to this guy's house with a friend of mine at the time, a so-called friend. He introduced me to this guy, got me drunkand proposed some money to perform a sexual act."

Antone saidthe same "friend" put him in similar situations several times.

"It didn't dawn on me until later in my life that guy was actually trafficking me, because he benefited financially from introducing me to these different men."

Antone hid what was happening at the time because he was ashamed, but saidbeing open about it now is part of hishealing journey since 1996. He hopes it will inspire others to come forward for help.

Today, Antone works at Ganohkwasra Family Assault Support Services in Six Nations of the Grand River,near Brantford, Ont.

Hesaidmore public discussion around human trafficking in recent years has helped him realize he was a victim. He saidputting a name to what happened has contributed to his recovery.

"It is empowering because, for me, it's a part of my healing journey a missing piece of the puzzle."

Helping community members better recognize what constitutes human trafficking is a major focus for Jami-Lee Baxter, supervisor of Ganohkwasra'schild and youth programming.

Part of that workincludesa program calledDeyogwadawenye, which means "we are travelling together" in Cayuga. Her team is working hard on community education, trafficking prevention and developing supports for victims.

It's unclear how prevalent it is in the community because of the lack of awareness and tracking something theDeyogwadawenyeteam hopes to change.

"A lot of times it gets reported as domestic violence and not human trafficking," said Baxter, whose team received a grant of $246,165 from theOntario government last year, part of a provincewideanti-human trafficking strategy that includes increasing culturally appropriate services for Indigenous communities.

The team began its work in April 2021 and so farhasn't identified or counselledany victims, but is supporting a large roster of young people who may be at risk.

Baxter saidproviding education from an Indigenous perspective, as well asculturally relevant healing and therapy, makethe program unique.

"[Indigenous peoples have] experienced human trafficking and sexual exploitation right from European contact," she said. "There was forced labour in residential schools as well."

The Ontario government says human trafficking takes multiple forms, including "sex trafficking, labour trafficking and forced marriage It can include recruiting, harbouring or controlling a person's movements using force, physical or psychological coercionor deception. Traffickers often make victims do labour (for example, domestic, physical and manual labour) or perform sexual acts in exchange for monetary gain."

In moreremote Indigenous communities, or communitieswith a lack of affordable or accessible housing, human trafficking can involverequiring sexual acts in exchange for somewhere to stay or a ride somewhere, saidAlex Martin, an anti-human trafficking youth worker with Deyogwadawenye. ForSix Nations, he said, its proximity to major highways is also a risk factoras it allows easy access to people from outside the reserve.

The team believes a significant amount of such activity is going on in the community. In March, three menone each fromSix Nations, Port Dover and nearby Burfordwerearrested after a human trafficking investigation, and charged with communicating for the purpose of obtaining sexual services and seeking sexual services.

At the national level, Martin said, about 60 per cent of human trafficking victims are Indigenous, even though Indigenous people only make up 1.4 per cent of Canada's population.

"Some of these people who are victims or survivors may not know they're being trafficked themselves," he said, noting the group is preparing an education module for schools, considering the average age of a trafficking victim is 13. "Right now, it's going unreported because we're not open to seeing what human trafficking is."

Some signs may include if a young person'snew, older boyfriendor girlfriendis trying to isolatethe individualfrom friends or family,or ifsomeone is wearing newclothes or hasother consumer goods they didn't buy themselves. It's also important to monitor young people's gaming accounts for users offering gifts over the platform, such as virtual currency to be used in the game, saidMartin.

"It's scary for youth, not only on reserve, but everywhere."

Joan Henhawk, the program's other youth worker, saidlearning about human trafficking has helped her open the discussion with her own childrenandurge them to share the information with their friends.

"What really opened my eyes is the luring and grooming stage," she said. "They actually pretend to be your boyfriend or girlfriend [The victim will] think, 'That's my boyfriend, they're just being nice to me,' but maybe they're after more."

Deyogwadawenye encourages community members to callthrough Ganohkwasraor contact policeif they suspect an instance of trafficking.

Unfortunately, getting police help can be complicated in a grooming situation. Antone saidhe called them when he believed it was happening to someone in his life, butthey weren't able to do anything because there was no proof of laws being broken.

"These recruiters come into our community and befriend teenagers, young girls people in risky situations and they lure them out of the community," he said, noting it underscores the importance of educating and supporting potential victims. "People are so in denial that it happens here in Ohsweken.

"If you have teenagers, it does apply to you. If you have internet at home, it does apply to you."

If you're experiencing what may be considered human or sex trafficking, there is help:

Go here to read the rest:
'It's going unreported': Program on Six Nations, Ont., out to open eyes on what human trafficking is - CBC.ca